1. No password access to other machines (UBUNTU2) from a Linux machine (UBUNTU1)
(1) Login ubuntu1 and switch to user such as S1
(2) Running ssh-keygen-t RSA
(3) running CD. SSH
(4) Run cat id_rsa.pub >> Authorized_keys. Running SSH localhost now allows you to log on to the machine without a password.
(5) running SCP authorized_keys [email Protected]:/home/s1/.ssh/authorized_keys
(6) Run chmod on UBUNTU2 Authorized_keys
(7) You can ssh directly in UBUNTU1 now UBUNTU2
2. Use Putty key file login from Windows ubuntu1
(1) Download the/home/s1/.ssh/id_rsa file on UBUNTU1 to Windows
(2) go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. Download PuTTYgen.exe
(3) Run PuTTYgen.exe, click Load, select the first step to download the Id_rsa file
(4) Save the resulting file to disk
(5) The Auto-login username of the session configured Putty is S1
(6) Set PPK file
(7) You can now login ubuntu1 without a password in putty
(8) Using the same file configuration steps five and sixth can access Ubuntu 2 without a password
Reference Link: http://www.rackspace.com/knowledge_center/article/logging-in-with-a-ssh-private-key-on-windows
SSH without password access to other machines and Windows on putty without password access to Linux machine