A few weeks ago I learned that you can make an ssh alias for connections you use regularly.

Normally you would type

ssh "username"@"ip address"

But this is difficult, what if you can’t remember the IP address, and don’t want to look for it in your bash history?

Open the ssh config file, which on my system is located at /etc/ssh/sshd_config or /etc/ssh/ssh_config. You can make your own config file under your user directory at ~/.ssh/config but I haven’t tried that.

Add your connection information to the beginning of the file.

Host borvo
  Port 22
  User "username"
  HostName "ip address"

Now you can connect just typing

ssh borvo

Much easier to remember!

This little tip is already common knowledge, there are loads of simple tutorials online about it.

Bonus: combine this with passwordless ssh access to log in automatically. It’s more secure to just disable password access completely.