The OpenSSH Client Config File: Simplify your SSH Connections

Originally published at: The OpenSSH Client Config File: Simplify your SSH Connections – LearnLinuxTV

to simplify your SSH connections, by including preset options per host. In this video, I’ll go over the basics of this config file.

2 Likes

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)

1 Like

I’m ashamed to say that I did not know about this config file.

I wrote my own script for the nicknames of my servers to apply the configs and execute the commands. Thank you for making these videos in ways that are approachable to new users, experts, and everyone in between.

Now… I have to go edit some config files.