SSH Login Without Password Using ssh-keygen

In Some Machine some times its necessary or convenient to have password less access

In password-less SSH login method, we will create encrypted keys, and copy to remote server using SSH. So no need to enter remote server password while login.

Password less SSH can be used to copy or taking backup from one server to another .

You can login to a remote Linux server without entering password in simple steps using ssky-keygen and ssh-copy-id.

My Setup Environment 

SSH Client : 192.168.198.129 (RHEL 6)

SSH Remote node : 192.168.198.130 (RHEL 7)

ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file.

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

ssh-keygen



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

#ssh-copy-id remote-host



Step 3: Login to remote-host without entering the password

SSH should  not ask you for the password.

SSH Login Without Password Using ssh-keygen SSH Login Without Password Using ssh-keygen Reviewed by TecGeeks News on April 01, 2016 Rating: 5

No comments:

Get Your Business Online Now


Powered by Blogger.