[Oracle RAC 12.1 Installation on Oracle Linux 6.7 (ISCSI + ASM)]: Secure Shell configuration between cluster nodes


The cluster nodes need to be able to communicate with each other via ssh. When Oracle RAC is installed, it is only installed on the first node, on all other nodes it is simply copied.

Configuring secure shell (ssh)

Server: rac1
# su - oracle12


$ mkdir ~/.ssh
$ chmod 700 ~/.ssh

Create RSA-type public and private encryption keys. (Press Enter for all questions)

$ /usr/bin/ssh-keygen -t rsa

Create DSA-type public and private encryption keys. (Press Enter for all questions)

$ /usr/bin/ssh-keygen -t dsa


$ cd .ssh/

Add the obtained keys to the authorized keys file.

$ cat id_rsa.pub >>authorized_keys
$ cat id_dsa.pub >>authorized_keys


$ ssh rac2 mkdir /home/oracle12/.ssh/


$ scp authorized_keys rac2:/home/oracle12/.ssh


$ ssh rac2

Repeat the key generation procedure

$ /usr/bin/ssh-keygen -t rsa
$ /usr/bin/ssh-keygen -t dsa


$ cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$ cat id_dsa.pub >> authorized_keys


$ chmod 644 authorized_keys


$ scp authorized_keys rac1:/home/oracle12/.ssh


$ ssh rac1


$ exec /usr/bin/ssh-agent $SHELL
$ /usr/bin/ssh-add

Check that everything is working correctly. Try all possible connection options between nodes without entering credentials.

$ ssh rac1 date
$ ssh rac2 date


$ ssh rac1.localdomain date
$ ssh rac2.localdomain date


$ ssh rac2


$ ssh rac1 date
$ ssh rac2 date


$ ssh rac1.localdomain date
$ ssh rac2.localdomain date


$ ssh rac1