The SSH config file located at ~/.ssh/config is a plain text preference file for common SSH connection preferences.
Add the example below to your config file.
Host infodev
HostName 107.170.79.132
User infomedia
The above is just a shortcut for ssh infomedia@107.170.79.132. With the above setting added to our config file, we can simply type ssh infodevin our terminal to access the infodev server.
In the previous step, we added our SSH keys so that we aren't prompted for a password. This means the connection is always available to our system with the infodev ssh keyword.
For SiteGround and cPanel-based servers, it is necessary to provide the port number as well.
Consider this example:
Host acme
HostName 184.154.235.5
User acme
Port 18765
The above is a shortcut for ssh acme@184.154.235.5 -p18765 and will allow you to connect to the target server simply using ssh acme.