Instead of using SSH on an IP address that you’ll definitely forget, you can use shortcuts instead! For instance, instead of typing:

ssh username@

Wouldn’t you rather do something like:


Creating SSH shortcuts

To create shortcuts, you have to create a file inside your home directory’s .ssh folder called config.

If the ~/.ssh directory does not exist.

Now, we can create the config file.

For every IP address that you want to add a shortcut, add the following three lines of information corresponding to shortcut name, IP address, and username separated by a new line:

Now, you can ssh into the machine with the shortcut.

You can also ssh to any other hostname that you have set in the config file.