Setup Password Less Ssh Connectivity Using SshUserSetup.Sh

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 03 Oct, 2022
  • 0 Comments
  • 1 Min Read

Setup Password Less Ssh Connectivity Using SshUserSetup.Sh

How To Setup Password Less Ssh Connectivity Using SshUserSetup.Sh

Before starting RAC setup between two nodes, we need to have password less ssh connectivity between the nodes.
There is a manual process to enable ssh connectivity . However oracle is providing a simple sshUserSetup.sh script, that will automate the steps.

db nodes – > node1 , node2

 ./sshUserSetup.sh -user oracle -hosts “node1 node2” -noPromptPassphrase -confirm -advanced 


oracle@node1:...a/oracle/app/grid19c/deinstall$ ./sshUserSetup.sh -user oracle -hosts "node1 node2" -noPromptPassphrase -confirm -advanced
The output of this script is also logged into /tmp/sshUserSetup_2022-10-03-14-36-16.log
Hosts are node1 node2
user is oracle
Platform:- SunOS
Checking if the remote hosts are reachable
PING node1: 5 data bytes
13 bytes from node1 (192.168.56.71): icmp_seq=0.
13 bytes from node1 (192.168.56.71): icmp_seq=1.
13 bytes from node1 (192.168.56.71): icmp_seq=2.
13 bytes from node1 (192.168.56.71): icmp_seq=3.
13 bytes from node1 (192.168.56.71): icmp_seq=4.

----node1 PING Statistics----
5 packets transmitted, 5 packets received, 0% packet loss
PING node2: 5 data bytes
13 bytes from node2 (192.168.56.72): icmp_seq=0.
13 bytes from node2 (192.168.56.72): icmp_seq=1.
13 bytes from node2 (192.168.56.72): icmp_seq=2.
13 bytes from node2 (192.168.56.72): icmp_seq=3.
13 bytes from node2 (192.168.56.72): icmp_seq=4.

----node2 PING Statistics----
5 packets transmitted, 5 packets received, 0% packet loss
Remote host reachability check succeeded.
The following hosts are reachable: node1 node2.
The following hosts are not reachable: .
All hosts are reachable. Proceeding further...
firsthost node1
numhosts 0
The script will setup SSH connectivity from the host node1 to all
the remote hosts. After the script is executed, the user can use SSH to run
commands on the remote hosts or copy files between this host node1
and the remote hosts without being prompted for passwords or confirmations.

NOTE 1:
As part of the setup procedure, this script will use ssh and scp to copy
files between the local host and the remote hosts. Since the script does not
store passwords, you may be prompted for the passwords during the execution of
the script whenever ssh or scp is invoked.

NOTE 2:
AS PER SSH REQUIREMENTS, THIS SCRIPT WILL SECURE THE USER HOME DIRECTORY
AND THE .ssh DIRECTORY BY REVOKING GROUP AND WORLD WRITE PRIVILEGES TO THESE
directories.

Do you want to continue and let the script make the above mentioned changes (yes/no)?
Confirmation provided on the command line

.
.
.
.
.
.
.
.
.
.
.
.
.
-Verification from complete-
SSH verification complete.

Now test ssh connectivity between the nodes:

Hope It Helps !!!