nc -vz -w 5 203.0.113.10 22, then fix the firewall or network from the VNC console.
Operation timed out.
Before you start
- A timeout gives no clue on its own. Work through the causes in order: the first ones take seconds to rule out.
- For fixes inside the server, use the VNC console on a VPS. On a dedicated server, open a ticket for KVM/IPMI access.
- If the message says
Connection refusedinstead, see SSH connection refused. - Commands use
sudo. As root, leave it out.
Cause 1: The server is off, stuck or still booting
Check: open your server in the VPS Panel and look at its status. Then open the VNC console: a login prompt means the system is up; a boot error or a blank screen means it isn’t. Fix: boot or restart the server. If it stops at an error, see Linux server won’t boot.Cause 2: Wrong IP address or port
Check: compare the IP in your command with the one on your server page. If you connect by domain, see which IP it resolves to:-p if you changed the SSH port:
Cause 3: A firewall drops SSH
A firewall decides which network connections reach your server. A rule that drops traffic causes a timeout. UFW’s default policy drops everything you haven’t allowed, soufw enable without an SSH rule gives exactly this error.
Check on the console:
- Ubuntu / Debian (UFW)
- AlmaLinux / Rocky (firewalld)
22/tcp, OpenSSH or your custom port) must be listed as ALLOW IN.- Ubuntu / Debian (UFW)
- AlmaLinux / Rocky (firewalld)
Cause 4: The server’s network settings are broken
After an edit to Netplan, NetworkManager or/etc/network/interfaces, the server may have no working IP or route. Then nothing reaches it: not SSH, not ping, not your website.
Check on the console:
eth0 or ens3) and a default via route. If either is missing, or the ping fails, the network is down.
Fix: undo your last change and apply it again (sudo netplan apply on Ubuntu, sudo nmcli connection up "System eth0" on AlmaLinux/Rocky; your connection name may differ). Compare your settings with the network settings in the panel and see configure a static IP with Netplan.
Cause 5: Your own network blocks the port
Office, school, hotel and some public Wi-Fi networks block outgoing SSH, especially on ports other than 22. Check from your computer:- Linux / macOS
- Windows (PowerShell)
How to check it worked
debug1: Connection established. means the network path is open. Any error after that is about the login, not the connection.
Frequently asked questions
Ping works but SSH times out. Why?
The server is online, so a firewall drops the SSH port, or SSH listens on another port. Check Cause 3 andsudo ss -tlnp on the console.
Ping doesn’t work but the server is fine. Is that a problem?
Not necessarily. Some firewalls block ping (ICMP). Test the SSH port itself withnc or Test-NetConnection instead.
SSH times out only sometimes. What does that mean?
Intermittent timeouts point to packet loss or an overloaded server. Run mtr to your server and check its load with htop.Related guides
VPS and dedicated server guides
Every guide in this section.
Locked out after a firewall change
Recover from a rule that blocks SSH.
Check if a port is open from outside
Test any port from the internet.
Diagnose network latency
Find packet loss and slow routes.
SSH connection refused
When the server answers “no”.
Checked against the official OpenSSH ssh manual, Ubuntu’s firewall documentation and Microsoft’s Test-NetConnection reference on 4 November 2026; the
ssh and nc timeout messages and the UFW rule (dry run) were tested on Ubuntu 24.04 LTS. The firewalld, NetworkManager and Windows commands were not tested.Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: November 2026