Sunday, May 4, 2014

2 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id

Step 1: Create public and private keys using ssh-key-gen on local-host



#ssh-key-gen
(Press enter three times)

Step 2: Copy the public key to remote-host using ssh-copy-id

#ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
(Replace remote-host with ip address or server name)



---

No comments:

Post a Comment

Feel free to leave your question or comment here, we will reply you as soon as possible.