SMS.3806 The Connection to the Port 22 of Target Server Was Rejected
During a migration, an SSH connection must be established between the source server and the target server. This message is displayed when OpenSSH reports the error "connect refused", which means the connection to the target server's IP address is rejected. The possible causes and solutions are:
- Check whether the security groups, firewalls, and ACL rules allow the source server to access the target server with the IP address.
Check whether the connection is disallowed by any security groups, firewalls, or ACL rules on the network between the source and target servers. If it is, modify their settings to allow the source server to access the target server and retry the migration task.
- Check the network connectivity between the source and target servers. If a private network is used, check whether the source and target servers are in the same network range.
Use SSH or Telnet to test the network connectivity between the source and target servers. If the connection fails, check the network and firewall settings.
The commands are in the following format:
- telnet <target-server-IP-address> <port>
- ssh -p <port> <username>@<target-server-IP-address>
By default, SMS connects to the target server using port 22. If the target server is configured to use a custom SSH port, replace <port> in the command with the actual port.
For example, if the target server IP address is 192.168.0.x, you can run the following command on the source server as the root user to test connectivity to port 22:telnet 192.168.0.x 22
ssh -p 22 root@192.168.0.x
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.