Creating an SSH alias

 Posted by at 7:38 pm  No Responses »
Oct 202010
 

Are you tied of typing the entire hostname each time you SSH into a machine? $ ssh -l user01 machine1.example.com You can add an alias to your ~/.ssh/config file, setting both the username and hostname. Host mymachine HostName machine1.example.com User user01 Now, all you have to type is: $ ssh mymachine Related articles:

© 2010 Geektastical Suffusion theme by Sayontan Sinha