SSH config

If you are using special ports or different usernames on different ssh-hosts you can simplify your connect commands with a .ssh/config file like the one in the following example.

Host test1
    HostName 8.8.8.8
    Port 12345
    User myname
Host test2
    HostName fubuntu
    User horaz
Host *
    User root

ssh test1 equals ssh myname@8.8.8.8 -p 12345. The last entry lets you use root for all other hosts.

Leave a Reply