Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)
Showing posts with label passwd. Show all posts
Showing posts with label passwd. Show all posts

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

Monday, February 9, 2015

Password cannot be circular shift of logonid +HPUX

Error : Password cannot be circular shift of logonid
******************************************

hpuxsrv:/> passwd kalyanjit
Changing password for kalyanjit
Last successful password change for kiren: Thu Feb  5 15:06:04 2015
Last unsuccessful password change for kiren: NEVER

New password:
Password cannot be circular shift of logonid.


Trick:


testhpux:/sbin/passwd kalyanjit
New password:
Re-enter new password:

Reason: /sbin/passwd -  it allows to change the password even if it is changed 5 minutes before also. 


Thanks...
Kalyanjit


**Let's Share our knowledge and keep visiting here**