During cluster installation, the system automatically generate the SSH public key and private key for user omm to establish the trust relationship between nodes. After the cluster is installed, if the original keys are accidentally disclosed or new keys are used, the system administrator can perform the following operations to manually change the keys.
If the node is a Manager management node, run the following command on the active management node.
TMOUT=0
After the operations in this section are complete, run the TMOUT=Timeout interval command to restore the timeout interval in a timely manner. For example, TMOUT=600 indicates that a user is logged out if the user does not perform any operation within 600 seconds.
If "Succeed to update ssh private key." is displayed when the preceding command is executed, the SSH key is generated successfully.
scp ${HOME}/.ssh/id_rsa.pub oms_ip:${HOME}/.ssh/id_rsa.pub_bak
oms_ip: indicates the IP address of the active management node.
Enter the password of user omm to copy the files.
TMOUT=0
cd ${HOME}/.ssh
cat id_rsa.pub_bak >> authorized_keys
mv -f id_rsa.pub_bak /tmp
scp authorized_keys node_ip:/${HOME}/.ssh/authorized_keys
node_ip: indicates the IP address of another node in the cluster. Multiple IP addresses are not supported.
ssh node_ip
node_ip: indicates the IP address of another node in the cluster. Multiple IP addresses are not supported.