Use an alias to SSH to a server

Create a file ~/.ssh/config and insert the following:

mauricio@rynex:~$ cat .ssh/config
Host SERVER_ALIAS
Port PORT
HostName SERVER_NAME
User USERNAME
Compression yes
TCPKeepAlive yes

Change according to your servername, username and port, of course.

Then you can simply use:

ssh SERVER_ALIAS

to connect to the server instead of using:

ssh username@hostname
Tagged , , , , , . Bookmark the permalink.

Leave a Reply