SSH login without password in a simple 3 Steps

In this page, I would like to enable the ssh passwordless entry to a server in 3 steps. For this, we are making use of ssh-keygen and ssh-copy-id

ssh-keygen helps you generate SSH keys if the key are not generated

ssh-copy-id will help you to copy the key to the remote server and this will help the manual procedure.

Please refer the below-pasted snippet for the steps to do the same.

Step 1: SSH into the local server and generate the keys
[email protected]$ ssh-keygen
Note: You can skip the above steps, if the keys are already generated

Step 2: Copy the public key to remote-host using ssh-copy-id
[email protected]$ ssh-copy-id -i ~/.ssh/ user@remote_server_IP (enter the remote server password when prompted)
Example:  ssh-copy-id -i ~/.ssh/ [email protected]

Step 3:ssh root@remote server IP

You are all set to go 🙂

If you need any further assistance contact me @ [email protected].. prefer hangout 🙂

Posted in Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.