[arch-general] bash remote host completion gone

Aaron Griffin aaronmgriffin at gmail.com
Tue Jun 16 15:51:41 EDT 2009


On Tue, Jun 16, 2009 at 2:37 PM, prad<prad at towardsfreedom.com> wrote:
> i had remote host completion:
> ssh hostna[tab]
> with my original debian .bashrc file.
>
> now with a new arch install it is gone and setting this
> export HOSTFILE=$HOME/.hosts
> doesn't bring it back even when i put the hostnames from /etc/hosts
> into that file.
>
> bash-completion is there and working just fine - except for the remote
> host completion.
>
> how can i get the remote hostnames to complete using [tab] again?

You need to shutoff the host-hashing setting for ssh.

In /etc/ssh/ssh_config (or your ~/.ssh/config), set "HashKnownHosts no"


More information about the arch-general mailing list