Automatic Login in SSH using config filelinux 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.
$ vi ~/.ssh/config
Add the following:
Host server1 HostName server1.example.com User root Port 22 IdentityFile ~/.ssh/test.pem
Next time you try to login to the server:
$ ssh server1