[Oracle RAC 12.1 SHARED FILE SYSTEM Installation]: Setting up Secure Shell between cluster nodes


Cluster nodes must be able to communicate with each other via ssh. When Oracle RAC is installed, it is installed only on the first node, all others are just copied.

Setting up 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 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 to go through 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