How to establish ssh equivalency between two servers

Thoughts are powerful

To establish a passwordless ssh between servers,first generate a public/private RSA encryption key using the command:

step 1: The key of the host is updated on files ‘id_rsa’ and with key value pairs

oracle@orcl ~]$ssh-keygen -t rsa

Enter the passphrase:

step 2: Copy the symmetric keys to the authorized_keys file

oracle@orcl ~]$cd .ssh

oracle@orcl .ssh]$ cat | ssh hostname ‘cat >> /home/oracle/.ssh/authorized_keys’

step 3: Try to ssh from one node to other and vice versa

oracle@orcl ~]$ ssh hostname1 && ssh hostname2

Leave a Reply