Sunday, 25 October 2015

Configure SSH for a RAC Installation

Configure ssh between 2 node RAC, training01 and training02

(This Steps is not required during Installation of Oracle 11gR2 RAC installation, Because during Installation of GRID you can  do it from GUI) 
To configure SSH you need to perform the following steps on each node in the cluster with operating system user you want to use for the ssh.

From RAC1:

[oracle@training01 ~]$ su - oracle
[oracle@training01~]$cd $HOME
[oracle@training01 ~]$ mkdir .ssh
[oracle@training01~]$ chmod 700 .ssh
[oracle@training01 ~]$ cd .ssh
[oracle@training01 ~]$ssh-keygen -t rsa

Now accept the default location for the key file and the default passphrase

[oracle@training01~]$ ssh-keygen -t dsa

Now accept the default location for the key file and the default passphrase

[oracle@training01 ~]$ cat *.pub >> authorized_keys.training01

Start to copy the authorized_keys.training01 to all the other nodes into $HOME/.ssh/

[oracle@training01 ~]$scp -p authorized_keys.training01 oracle@training02:~/.ssh

From RAC2:

[oracle@training02 ~]$ su - oracle
[oracle@training02 ~]$ cd $HOME
[oracle@training02 ~]$  mkdir .ssh
[oracle@training02 ~]$  chmod 700 .ssh
[oracle@training02 ~]$  cd .ssh
[oracle@training02 ~]$  ssh-keygen -t rsa

Now accept the default location for the key file and the default passphrase

[oracle@training02 ~]$  ssh-keygen -t dsa

Now accept the default location for the key file and the default passphrase

[oracle@training02~]$  cat *.pub >> authorized_keys.training02

Start to copy the authorized_keys.training02 to all the other nodes into $HOME/.ssh/
[oracle@training02 ~]$ scp -p authorized_keys.training02 oracle@training01:~/.ssh


From RAC1:
[oracle@training01~]$ cd $HOME/.ssh
[oracle@training01 ~]$cat *.training* >> authorized_keys
[oracle@training021~]$ chmod 600 authorized_keys

From RAC2:
[oracle@training02~]$  cd $HOME/.ssh
[oracle@training02 ~]$  cat *.training* >> authorized_keys
[oracle@training02 ~]$  chmod 600 authorized_keys

Now you can test the ssh connection

From RAC2 :
[oracle@training02 ~]$  ssh training01 date

From RAC1:
[oracle@training01 ~]$ssh training02 date

No comments:

  Oracle 21c Cluster Setup & DB Creation on OEL-8.4 using Virtual-box       Moto: This document is created on traditional way to Insta...