What to Do When Your VPS Won't Connect (SSH Timeout)
A failed SSH connection is one of the most common issues. Don't panic — work through the steps below and most resolve themselves.
1. Verify the basics
- Are IP, port and username correct (default port 22);
- Is the server powered on/running (check the console).
2. Timeout vs refused
- Connection timed out: network unreachable, usually a firewall, security group, or a down server;
- Connection refused: server reachable but SSH isn't listening — service down or wrong port;
- Permission denied: network is fine; an account or key problem.
3. Check item by item
- Try a different local network (phone hotspot) to rule out local blocking;
- Check the server firewall/security group allows the SSH port;
- Use ping/mtr to check for loss;
- If you have a web console (VNC), log in and check sshd: systemctl status sshd.
4. Still stuck
Gather your findings (error type, ping results) and contact 00Shark support @aliyun370; we can help check the server from the backend.
Cet article a été rédigé avec l'aide de l'IA par l'équipe éditoriale de SharkCloud et relu avant publication.