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:
With OpenSSH there is an easy way to do the job. Edit or create a config file:
and then add the following:
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.
- man ssh_config