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)



---

Comments

Popular posts from this blog

Setup mail server with ldap authentication in docker

How to allow non root user to execute hping command ?

Fedora 19 with kernel 3.10 fail to install vmplayer module.