SSH user equivalency still prompt for password

Hi All,

I've followed the exact same steps of how to setup and enable SSH user equivalent including the right permission, but when I "ssh" it still prompts for password. Could you help to see what I did wrong?

I appreciate any helps.

:confused:

server1.com:/u01/oracle
RAC1 > mkdir -p ~/.ssh
RAC1 > chmod 700 ~/.ssh
server1.com:/u01/oracle
RAC1 > /usr/bin/ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/u01/oracle/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /u01/oracle/.ssh/id_rsa.
Your public key has been saved in /u01/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
1a:35:46:e5:d4:f7:12:9a:e6:dd:f1:ea:47:dd:69:8a oracle@server1.com
server1.com:/u01/oracle
RAC1 > cd .ssh
server1.com:/u01/oracle/.ssh
RAC1 > ls -ltr
total 8
-rw-r--r-- 1 oracle oinstall  409 May 27 14:12 id_rsa.pub
-rw------- 1 oracle oinstall 1675 May 27 14:12 id_rsa
server1.com:/u01/oracle/.ssh
RAC1 > touch ~/.ssh/authorized_keys
server1.com:/u01/oracle/.ssh
RAC1 > ls -ltr
total 8
-rw-r--r-- 1 oracle oinstall  409 May 27 14:12 id_rsa.pub
-rw------- 1 oracle oinstall 1675 May 27 14:12 id_rsa
-rw-r--r-- 1 oracle oinstall    0 May 27 14:13 authorized_keys
server1.com:/u01/oracle/.ssh
RAC1 > ssh server1.com cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
The authenticity of host 'server1.com (10.100.69.101)' can't be established.
RSA key fingerprint is 04:1b:1a:73:04:60:40:9c:a3:fd:e0:a4:b8:7d:a7:45.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server1.com,10.100.69.101' (RSA) to the list of known hosts.
oracle@server1.com's password: 
server1.com:/u01/oracle/.ssh
RAC1 > ssh server2.com cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
The authenticity of host 'server2.com (10.100.69.102)' can't be established.
RSA key fingerprint is 3d:4c:f0:ea:84:de:c3:95:24:bd:1c:28:80:63:4b:90.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server2.com,10.100.69.102' (RSA) to the list of known hosts.
oracle@server2.com's password: 
server1.com:/u01/oracle/.ssh
RAC1 > ls -ltr
total 16
-rw-r--r-- 1 oracle oinstall  409 May 27 14:12 id_rsa.pub
-rw------- 1 oracle oinstall 1675 May 27 14:12 id_rsa
-rw-r--r-- 1 oracle oinstall  832 May 27 14:15 known_hosts
-rw-r--r-- 1 oracle oinstall  818 May 27 14:15 authorized_keys
server1.com:/u01/oracle/.ssh
RAC1 > cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtDSLNO5xMQWAlyWfYyiwIQdTTE/Tw8MJzlxKjJaYO/tp/YlI5W8btIAkIm3RPhDd2QBl71RIcoXq2eIxEcxH0v6S6m/AWDMEtQGN/DdFUyW1rOpGnqkk73mxeTbDTJzrGZzpOmsODCXJxnHyFGuExTVv6Z2uVETCMqvFYblysANYWDMuDYIJ4MRTivkVQNRSZ71/IlqVAhwZbUiTaE1IkXtbqrBdi5BcVR4DyKkUdJDdgN8Mt9R1Ap7ExHQizf86Bcpn44keFaCEvpnySwA4iBP+UFPtXxhqKssrkhMFHSgw4pUrTGDpNBQnzPpaF5HwOtg4U4KOK6l4iCY7ho1F7w== oracle@server1.com
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0N8iAJaUMzQf3lxv4Lhpd0Sw12ISKdnpuw7FkJwEHg9pA7PLbovKCivUhqyonBRoDBKRESseEK0HRtK1tHmVtnfejV2tAVx2wZeDy1kR3AmkFXUuZ4bY/Q6ed5uk2HH5aLvx2e2krmk4oaXd5bTejwOEyErBtzeOyVC/AnxBwqTdTDD+vY71x+c9aGkVaw6wvj1oUjMtLPIEPgHyV/HePTt1DOiu8QTwgKt6EwP69elr8pmB8JBuLhzIymQKUAY+mE/4q6EjVChyd7/KaGQ+1r0i+4IQn08tqZK5WI35iswaSqyPef7lqShpBcwulPK57QDUbRQltySpxHq+tUPNuQ== oracle@server2.com
server1.com:/u01/oracle/.ssh
RAC1 > scp ~/.ssh/authorized_keys server2.com:.ssh/authorized_keys
oracle@server2.com's password: 
authorized_keys                                                                                  100%  818     0.8KB/s   00:00    
server1.com:/u01/oracle/.ssh
RAC1 > chmod 600 ~/.ssh/authorized_keys
server1.com:/u01/oracle/.ssh
RAC1 > ssh server1.com hostname
oracle@server1.com's password: 
server1.com
server1.com:/u01/oracle/.ssh
RAC1 > ssh server2.com hostname
oracle@server2.com's password:

Say you want to connect from server1 to server2 without password

You have to copy the pulic key of server 1 (~/.ssh/id_rsa.pub ) and paste this key in authirize file of server2 (~/.ssh/authorized_keys). Are you doing it correctly? This link might help you.

3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id (link removed)

I don't see anything wrong per se with what you've done so far. Could you post the output of

ssh -vv server2.com hostname