SSH Connection Timeout Error

Symptom

In the multi-server scenario, the following error message is displayed when the HCCL Test tool is executed:

1
ssh: connect to host xx.xx.xx.xx port 22: Connection time out

Possible Cause

This error occurs because the test host cannot remotely log in to other servers.

In the multi-server test scenario, you need to configure the SSH trust relationship between the operation server and all servers in cluster communication to support remote login to the servers in the cluster communication.

Solution

  1. Generate the key information on the current operation server. (If the key information already exists in the environment, skip this step.)
    ssh-keygen -t rsa

    For example, the key information is generated and stored in the /root/.ssh/id_rsa.pub file.

  2. Copy the public key of the operation server to other servers in cluster communication, to log in to the remote host using the SSH key.
    ssh-copy-id -i /root/.ssh/id_rsa.pub node1_address
    ssh-copy-id -i /root/.ssh/id_rsa.pub node2_address
  3. Log in to other servers remotely from the operation server using the SSH key and check whether you can directly log in.