Handling the SSH Switching Failure Between Active and Standby Nodes
Question Description
On a Linux node, the SSH switching between the active and standby nodes fails. As a result, the HA function fails to be configured.
Possible Causes
Key pair is not selected for the Login Mode during node creation.
Handling Method
Upload the key file to the target node.
- Log in to the jump host, copy the certificate private key file to the /root/.ssh directory, and rename the file id_rsa.
To create a key, do as follows:
On the cloud server creation page, click View Key Pair. On the displayed Key Pair page, click Create Key Pair, specify the key pair name, and click OK. In the Information dialog box that is displayed, click OK. Then, you can view and save the private key as prompted.
For example, if the private key file name is private.pem, run the following commands to rename it:
cp /usr/private.pem /root/.ssh/id_rsa
cd /root/.ssh/
chmod 600 id_rsa
- Run the following commands to generate the id_rsa.pub and authorized_keys files:
ssh-keygen -y -f id_rsa > id_rsa.pub
cp id_rsa.pub authorized_keys
- Use the server/backup plane IP address to allocate the public key file, the private key file, and the authorized_keys file to all nodes excepting SAP HANA Studio nodes.
The command is in the following format:
scp /root/.ssh/id_rsa Peer IP address:/root/.ssh/
scp /root/.ssh/authorized_keys Peer IP address:/root/.ssh/
scp /root/.ssh/id_rsa.pub Peer IP address:/root/.ssh/
- Verify the switching.
Use SSH to switch from the jump host to all nodes excepting the SAP HANA Studio node for verification.
For example, the server/backup plane IP address of the NFS server is 10.0.5.101. To switch from the jump host to the NFS server, run the following command:
ssh 10.0.5.101
Last Article: Appendix
Next Article: Follow-up Procedure After DESS Disk Capacity Expansion (fdisk)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.