On Tue, Jun 16, 2009 at 15:51, Aaron Griffin<aaronmgriffin@gmail.com> wrote:
On Tue, Jun 16, 2009 at 2:37 PM, prad<prad@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"
Additionally, you probably want to delete any hashed lines so they can be regenerated later.