Inure to Advance The document describes how to set up Ssh login to other Linux servers with out password. This will be useful to automate the scripts to copy files via scp , sftp to the servers which we may use everyday. The author is not responsible for any kind of misconfiguration in your current system In this document will show you the ssh authentication without password with linux machines having IP address 192.168.42.128 (Master) and 192.168.42.129 (Slave). Here in the example will show the ssh login to Slave from Master.
Login to Master Navigate to the directory /root/.ssh
Note: If there is no directory .ssh under /root, create a directory .ssh with read, write execute permission for the owner.
Generate the public key for authentication
Copy the file created by above command to the Slave
Note: If there is no directory .ssh under /root in Slave server, create a directory .ssh with read, write execute permission for the owner.
Set the public key generated as authentication key for Ssh.
Set permission to have read write access for owner. Remove the public key i.e., remove id_dsa.pub
Once you finish the above steps with out error. Login to Master and try accessing Slave via SSH or SCP. The System won’t prompt for the password. Voila!!! You are done. © las@avenzare Sarn inure, to advance 2