The OpenSSH client config file is a very powerful feature, that too many people ignore. You can use the client config file to simplify your SSH connections, by including preset options per host. In this video, I’ll go over the basics of this config file.
Continue the discussion at community.learnlinux.tv
1 more reply
Another cool thing about the config file is that apparently the bash startup scripts mine your .ssh/config (and /etc/hosts etc) for names and provide completions for various command line tools. For example, “ssh x[tab]” will do completion for all the host names startting with “x”. From the startup scripts I could find, this also works for traceroute, ping, dig/drill/nslookup and more.
Try it out, just type “ssh [tab]” and see if it lists a bunch of host names…
For the advanced user, take a look in /usr/share/bash-completion/completions/ssh
(edit: oops, [tab] was invisible)