Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: An improved "hosts" completion handling



Christopher Browne wrote:

> With the changes in openssh, of late, ~/.ssh/known_hosts is now
> littered with encoded host names that were getting pulled in such that
> I'd get tab completion looking like the following:
> 
> cbbrowne@dba2:~/Slony-I/slony1-HEAD-pristine> ssh rg  ssh
> rg570-da-logdbs
>  Wednesday 17:20:40
> rg570-da-logdbs
> rg570-da-logdbs1
> rg570-da-logdbs1.nj.site\ ssh-rsa\
> AAAAB3NzaC1yc2EAAAABIwAAAIEAn7BPZtUqqjJzpVszaI71KUCVyvGicrOvUTFO4EiGzCHm7lYtJIbN0MblFo4CGwq3Z7cgzMwn/qdSxIXFnlIHIpPHojcZAnbSFXrJMIKB45VjK6XgFOB7ZQtpKg252F/nXV7vaTa/xgI6H+tza4w5UI5AZnrD/knq+l3qtSyuBDU=
> rg570-da-logdbs2
> rg570-da-logdbs2.nj.site\ ssh-rsa\
> AAAAB3NzaC1yc2EAAAABIwAAAIEAn7BPZtUqqjJzpVszaI71KUCVyvGicrOvUTFO4EiGzCHm7lYtJIbN0MblFo4CGwq3Z7cgzMwn/qdSxIXFnlIHIpPHojcZAnbSFXrJMIKB45VjK6XgFOB7ZQtpKg252F/nXV7vaTa/xgI6H+tza4w5UI5AZnrD/knq+l3qtSyuBDU=
> 
> Bleah.  That's awful.

Another solution is to turn this hashing of the ssh hosts off. Just add
"HashKnownHosts no" to your .ssh/config file.

-- 

John Eikenberry
[jae@xxxxxxxx - http://zhar.net]
______________________________________________________________
"It is difficult to produce a television documentary that is both incisive
and probing when every twelve minutes one is interrupted by twelve dancing
rabbits singing about toilet paper." - Rod Serling



Messages sorted by: Reverse Date, Date, Thread, Author