>./ Alex Tech Blog / Automatic Login in SSH using config file

Automatic Login in SSH using config file

#linux #ssh

Remembering tons of SSH hosts and respective signature files is hard. This is when the config file comes in place. Edit the file ~/.ssh/config.

1
$ vi ~/.ssh/config

Add the following:

1
2
3
4
5
Host server1
     HostName server1.example.com
     User root
     Port 22
     IdentityFile ~/.ssh/test.pem

Next time you try to login to the server:

1
$ ssh server1

#aws #cheat sheet #codecommit #esri #github #honeycode #javascript #jupyter #linux #machine learning #pandas #php #python #salesforce #ssh