rm -rf ./.ssh   
mkdir .ssh
chmod 700 .ssh
chmod go-w $HOME
ssh-keygen -t rsa
Generating public/private rsa key pair. Please be patient….  
Key generation may take a few minutes Enter file in which to save the key (/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again: Your identification has been saved in /oracle/.ssh/id_rsa.
Your public key has been saved in /oracle/.ssh/id_rsa.pub.
The key fingerprint is: a9:1c:74:0e:56:51:db:32:f5:54:30:84:38:86:ce:e7

scp /home/oracle/.ssh/id_rsa.pub oracle@server2:/data1/oracle/.ssh/id_rsa.pub_server1

cat $HOME/.ssh/id_rsa.pub_server1 >> $HOME/.ssh/authorized_keys

scp /data1/oracle/.ssh/id_rsa.pub oracle@server1:/home/oracle/.ssh/id_rsa.pub_server2

cat $HOME/.ssh/id_rsa.pub_server2 >> $HOME/.ssh/authorized_keys