Set Automatic SSH Login for your remote servers

If you get tired of entering your admin password on logging in to your remote server through SSH, you can implement a single sign-on to your remote server. This method registers your local computer's information to the remote host so you won't need to enter your login details every time. This is how it's done:

First, generate a private key on your local machine:
You will be asked to enter file in which to save the key: Just press Enter to save to the default location.
You will be asked to enter passphrase: Just press Enter if you don't want one.
Enter again to confirm.

Second, put it to your desired remote host. Create a .ssh folder on the remote host:
Save your local machine's private key to the remote host:
And... You're done!
Powered by Blogger.