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/id_rsa.pub user@remote_server_IP (enter the remote server password when prompted)
Example: ssh-copy-id -i ~/.ssh/id_rsa.pub [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 🙂