OpenSSH provides a per-user configuration file usually located in ~/.ssh/config. This file can help ease your life as Sysadmin. Let’s say that you frequently connect to a server in this way:
ssh admin@boring-servername.boring-domain.com
With OpenSSH there is an easy way to do the job. Edit or create a config file:
vi ~/.ssh/config
and then add the following:
Host servername
User admin
HostName boring-servername.boring-domain.com
Where Host is the alias for the remote server you want to connect to, HostName is the full name of the remote server and User is the login name.
References:
- man ssh_config