This document uses the CVM with CentOS 7.5 as an example to show how to troubleshoot the problem where a Linux instance cannot be logged in to by using SSH.
During login to a Linux instance by using SSH, a message indicating that the connection is unavailable or failed appears.
Use the port verification tool for security groups to check whether security group rules are correct.
Note:
When the remote login and other login methods fail, you can use VNC to connect the instance, monitor instance status, and troubleshoot issues.
netstat -tnlp | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
Run the following command to check whether the SSHD service has been launched.
systemctl status sshd.service
systemctl start sshd
If you still cannot log in to your instance after performing these steps, we recommend that you report this problem by submitting a ticket.
Was this page helpful?