Tab Complete for SSH and SCP

If you are required to connect to different servers, then remembering and typing in all of the details can become tiresome.

Thankfully there is simple solution to this, using the SSH config file.

To make use of this, create the following file ~/.ssh/config

In there add the following details

Host easyToRememberName
    HostName 127.0.0.1
    Port 2020
    User ross

You will then can tab completion on ssh and scp commands. You can see more of the options that can be set in the file here