Sunday, March 25, 2018

How to create shortcuts/aliases/nicknames for your ssh server address

1.   cd ~/.ssh
2.   nano config
       #this is to create a file named config
3.   type your server nickname, address and username into this file and save. An example from https://scotch.io/tutorials/how-to-create-an-ssh-shortcut 
Host scotch
    HostName scotch.io
    User nick

Host example2
    HostName example.com
    User root
     

No comments:

Post a Comment