Steps to configure ssh for configuring Oracle RAC on Unix environment
Add user and groups
# groupadd -g 100 oinstall
# groupadd -g 101 dba
# useradd -u 102 -g oinstall -G dba -m -d /home/oracle oracle
# passwd xyz#$123
$ mkdir ~/.ssh
$ chmod 755 ~/.ssh
$ /usr/bin/ssh-keygen -t rsa
$ /usr/bin/ssh-keygen -t dsa
$ touch ~/.ssh/authorized_keys
$ cd .ssh
$ ssh node1 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
$ ssh node1 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
Run the below command on node2 logging as oracle user.
$ mkdir ~/.ssh
$ chmod 755 ~/.ssh
$ /usr/bin/ssh-keygen -t rsa
$ /usr/bin/ssh-keygen -t dsa
$ touch ~/.ssh/authorized_keys
$ cd .ssh
$ ssh node2 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
$ ssh node2 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
• Run the below command on node1 (From where OUI will be run) logging as oracle user.
$ cd .ssh
$ ssh node2 cat /home/oracle/.ssh/authorized_keys >> authorized_keys
$ scp authorized_keys oracle@node2:/home/oracle/.ssh/
$ exec /usr/bin/ssh-agent $SHELL
$ /usr/bin/ssh-add
Add user and groups
# groupadd -g 100 oinstall
# groupadd -g 101 dba
# useradd -u 102 -g oinstall -G dba -m -d /home/oracle oracle
# passwd xyz#$123
$ mkdir ~/.ssh
$ chmod 755 ~/.ssh
$ /usr/bin/ssh-keygen -t rsa
$ /usr/bin/ssh-keygen -t dsa
$ touch ~/.ssh/authorized_keys
$ cd .ssh
$ ssh node1 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
$ ssh node1 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
Run the below command on node2 logging as oracle user.
$ mkdir ~/.ssh
$ chmod 755 ~/.ssh
$ /usr/bin/ssh-keygen -t rsa
$ /usr/bin/ssh-keygen -t dsa
$ touch ~/.ssh/authorized_keys
$ cd .ssh
$ ssh node2 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
$ ssh node2 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
• Run the below command on node1 (From where OUI will be run) logging as oracle user.
$ cd .ssh
$ ssh node2 cat /home/oracle/.ssh/authorized_keys >> authorized_keys
$ scp authorized_keys oracle@node2:/home/oracle/.ssh/
$ exec /usr/bin/ssh-agent $SHELL
$ /usr/bin/ssh-add
No comments:
Post a Comment