Create RSA/DSA keys using ssh-keygen utility
Generate public key using the command at your remote server:
$ ssh-keygen -t dsa
Go to the folder
The command "ssh-keygen -t dsa" will generate the public key in file: id_dsa.pub
Take the public key and append this key in the Target-Server under /.ssh/authorized_keys
For Public/Private RSA Key pair:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/vikram/.ssh/id_rsa):
Created directory '/home/vikram/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/vikram/.ssh/id_rsa.
Your public key has been saved in /home/vikram/.ssh/id_rsa.pub.
The key fingerprint is: a7:00:03:16:e3:31:69:6d:cf:e0:5e:b7:e6:91:2c:80 vikram@B2
scp the generated public to the target machine under the home directory of the user "/.ssh/authorized_keys" to which you would like have a password-less login.
Now when you try to ssh to the remote machine, you will be prompted for the passphrase each time.
HPPS Transport from wM IS