Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Thursday, July 21, 2022

Password less ssh for root user from compute node to all cell nodes

 Password less ssh for root user from compute node to all cell nodes:


Instead of copying the public key from the compute nodes to the autorizedkeys file of all the cell nodes; below command can be used for password less ssh for root user from the compute nodes to all the cell nodes.

Where /opt/oracle.SupportTools/onecommand/cell_group is the file where list of cellnodes is present.

#dcli -g /opt/oracle.SupportTools/onecommand/cell_group -l root -k -s '-o StrictHostKeyChecking=no'  


(Assuming ssh key is already present if not then run command #ssh-keygen -t rsa  )


To Verify password less is happening for all cells using uptime command.

#dcli -g /opt/oracle.SupportTools/onecommand/cell_group -l root uptime


===================================================================================

[root@dbadm01 onecommand]# dcli -g /opt/oracle.SupportTools/onecommand/cell_group -l root -k -s '-o StrictHostKeyChecking=no'

root@celadm01's password:

root@celadm02's password:

celadm01: ssh key added

celadm02: ssh key added

[root@dbadm01 onecommand]#

[root@dbadm01 onecommand]# dcli -g /opt/oracle.SupportTools/onecommand/cell_group -l root uptime

hcprd2celadm01: 12:57:01 up 165 days, 20:52,  0 users,  load average: 1.35, 1.91, 1.92

hcprd2celadm02: 12:57:01 up 165 days, 12:49,  0 users,  load average: 2.91, 2.15, 1.97

[root@dbadm01 onecommand]#

===================================================================================


Password less ssh for root user from compute node to all compute nodes:

Where /opt/oracle.SupportTools/onecommand/dbs_group is the file where list of compute nodes mentioned.

#dcli -g /opt/oracle.SupportTools/onecommand/dbs_group -l root -k -s '-o StrictHostKeyChecking=no'

#dcli -g /opt/oracle.SupportTools/onecommand/dbs_group -l root uptime



Regards,

Kiran Jadhav

No comments:

Post a Comment