You are not logged in.

#1 2009-06-16 08:08:00

pradtf
Member
Registered: 2009-06-10
Posts: 134

bash remote host completion gone [SOLVED]

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.

how can i get the remote hostnames to complete using [tab] again?

Last edited by pradtf (2009-06-16 20:23:03)


in friendship,
prad

Offline

#2 2009-06-16 11:54:59

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: bash remote host completion gone [SOLVED]

Did you install bash-completion ?


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#3 2009-06-16 19:34:18

pradtf
Member
Registered: 2009-06-10
Posts: 134

Re: bash remote host completion gone [SOLVED]

yes bash-completion is there and working just fine ... except for remote hostnames.


in friendship,
prad

Offline

#4 2009-06-16 20:22:28

pradtf
Member
Registered: 2009-06-10
Posts: 134

Re: bash remote host completion gone [SOLVED]

the solution was presented to by aaron and daenyth from the arch-general@archlinux.org list:

1) shutoff the host-hashing setting for ssh.
In /etc/ssh/ssh_config (or your ~/.ssh/config), set "HashKnownHosts no"

2) delete existing hashed lines so they can be regenerated
easiest way to do this was to rm .ssh/known_hosts

now remote host completion works just fine!


in friendship,
prad

Offline

Board footer

Powered by FluxBB