Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Use Tab-completion for SSH 'host' aliases' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Tab-completion for SSH 'host' aliases
Authored by: pseutro on Jan 21, '10 03:40:43PM
If you don't mind maintaining a separate file with host names, this works pretty well in bash.
$ cat ~/.hosts
$ export HOSTFILE=~/.hosts
$ complete -A hostname   rsh rcp telnet rlogin r ftp ping disk ssh

[ Reply to This | # ]