sshUserSetup.sh in 11gr2 (Setup ssh for RAC)

I was just exploring the 11g software CD and found very interesting script.
sshUserSetup.sh , While RAC installation to create the user equivalence this script will be very useful. running keygen and scp is a boring task. This script makes your life easy.


cd -mount-/oracle/sshsetup
sshUserSetup.sh -hosts "host1 host2" -user oracle -advanced


==========================================================================
Script Location
[root@rac1 database]# ls -ltr
total 36
-rwxr-xr-x 1 root root 3226 Aug 15 2009 runInstaller
drwxr-xr-x 2 root root 4096 Aug 15 2009 rpm
drwxr-xr-x 4 root root 4096 Aug 15 2009 install
drwxr-xr-x 14 root root 4096 Aug 15 2009 stage
drwxrwxr-x 2 root root 4096 Aug 15 2009 sshsetup
drwxrwxr-x 2 root root 4096 Aug 15 2009 response
drwxr-xr-x 12 root root 4096 Aug 17 2009 doc
-rw-r--r-- 1 root root 5402 Aug 17 2009 welcome.html
[root@rac1 database]# pwd
/data3/database
[root@rac1 database]# cd sshsetup
[root@rac1 sshsetup]# ls
sshUserSetup.sh
[root@rac1 sshsetup]# head -10 sshUserSetup.sh
#!/bin/sh
# Nitin Jerath - Aug 2005
#Usage sshUserSetup.sh -user [ -hosts \"\" | -hostfile ] [ -advanced ] [ -verify] [ -exverify ] [ -logfile ] [-confirm] [-shared] [-help] [-usePassphrase] [-noPromptPassphrase]
#eg. sshUserSetup.sh -hosts "host1 host2" -user njerath -advanced
#This script is used to setup SSH connectivity from the host on which it is
# run to the specified remote hosts. After this script is run, the user can use # SSH to run commands on the remote hosts or copy files between the local host
# and the remote hosts without being prompted for passwords or confirmations.
[root@rac1 sshsetup]#
===========================================================================

Then i though , Why this script ? And found that installer use this script.
Interesting to know here that you can setup SSH while installing the GRID infrastruture. Click the "SSH Connectivity..." button and enter the password for the "oracle" user. Click the "Setup" button to to configure SSH connectivity, and the "Test" button to test it once it is complete.




If you are still working on 10g Software , You can get this script and can setup ssh between nodes in a minutes.

Enjoy !!!!

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete