Ever tried connecting to your VPS on port 22, only to get a silent timeout instead of a login prompt? You’re not alone. ISPs blocking SSH ports is one of the most common headaches for developers, sysadmins, and anyone running a tunnel that actually needs to work. This SSH port blocked ISP fix guide walks you through exactly why it happens, how to confirm the cause, and — most importantly — how to get access back without switching providers.
Why Your ISP Blocks SSH Ports in the First Place
Here’s the thing most people miss: your ISP probably isn’t targeting you. Blocking outbound connections on port 22 is a blunt, blanket policy. It’s cheaper than customer support, cheaper than abuse investigations, and it keeps a lot of compromised botnet traffic off their network.
Residential connections get hit the hardest. Business and enterprise lines usually don’t — which is exactly why your office connection works fine while your home setup times out.
The usual suspects behind the block:
- Reputation filtering: port 22 traffic looks identical whether it’s a legit admin session or a compromised IoT device scanning for victims. Many ISPs just block it to cut abuse volume.
- Consumer-tier policy: some providers explicitly limit outbound ports below 1024 on residential plans.
- Content and DPI filters: deep packet inspection engines flag “unusual” persistent connections, and SSH often gets caught in the net.
- DNS hijacking alongside port blocks: less common, but some ISPs do both. If you’re on a domain murah setup with custom resolution, this can mimic a network block.
Confirm the Block Before You Fix It
Don’t waste an afternoon debugging a block that doesn’t exist. Diagnose first.
Open a terminal and try a raw TCP connection:
nc -vz your.vps.ip 22If it hangs and dies with a timeout, the port is almost certainly filtered somewhere between you and the server. If it returns Connection refused instead, the problem is on the server side — sshd isn’t running, or a firewall dropped it. Different fix entirely.
Cross-check with a different network. Take your laptop to a café or tether it to mobile data. If it connects there and fails at home, you’ve confirmed an ISP-level issue in under two minutes.
Tip: try port 2222, 2022, or 8080 next. If those connect and 22 doesn’t, you’ve got a port-specific block. If nothing connects, it’s a broader filtering policy.
The Fixes That Actually Work
Alright, you’ve confirmed the block. Let’s get you back in. The fixes below range from a one-line config change to full tunneling solutions, so start at the top and work down.
1. Move sshd to a Non-Standard Port
This is the fastest fix and it solves the problem maybe 70% of the time. Edit the config on your server:
sudo nano /etc/ssh/sshd_configChange Port 22 to something unused — Port 2222 or Port 443 are popular picks. Port 443 is sneaky-good because it looks like HTTPS traffic to anything sniffing the wire. Restart the daemon, open the new port in your firewall, and you’re back. Learn more about 5 Easy Ways to SSH on.
One caveat: keep port 22 active until you’ve verified the new one works. Locking yourself out of a remote VPS is a special kind of miserable.
2. Tunnel SSH Over TLS
When simple port changes don’t stick — say, your ISP blocks everything unusual — wrap the connection. Tools like sslh accept SSH and HTTPS on the same port (443) and route them based on protocol sniffing. Your traffic becomes indistinguishable from normal web browsing.
Install it on the server, point sslh at port 443, and forward internal SSH traffic to 22 locally. From the outside, nothing looks like SSH at all.
3. Use WireGuard or OpenVPN as a Front Door
If you already run a VPN, this is the cleanest path. Bring up a WireGuard tunnel to a server that isn’t blocked, then SSH once you’re inside. Your client uses wg0 as the transport and the ISP never sees an SSH handshake in its logs.
Honestly, for anyone managing more than one server, this approach pays for itself in reduced friction. WireGuard configs are tiny and fast — no need for a heavyweight VPN premium subscription just to tunnel an SSH session, though the commercial ones are handy when you’re on the road.
4. Cloak It Behind an HTTP Tunnel
For mobile-based tunneling setups — HTTP Injector, v2rayNG, NekoBox — the playbook is a little different. These apps build an HTTP/WebSocket or Shadowsocks tunnel to your server, and SSH rides inside it. The connection reads as HTTPS on the wire, so the block never triggers.
Set your payload correctly and point the tunnel at your VPS. If you’re doing this from a laptop terbaik on a shaky Wi-Fi network, watch for MTU issues — dropping your tunnel MTU to 1400 solves most “it connects then hangs” symptoms.
Keeping the Fix Stable Long-Term
Fixing the block once is easy. Keeping it fixed is where people slip up.
A few habits that help: For more on this, see SSH UDP BadVPN Tutorial.
- Run SSH on a non-default port as your baseline — belt and braces.
- Enable
fail2banso failed auth attempts don’t turn into a noise fingerprint your ISP notices. - Use key-based auth only. Password auth over a tunnel is fine, but keys are cleaner and reduce the chance of a compromise flagging your account.
- Document your setup. Future-you will not remember which port you moved to. Ask me how I know.
If you’re hosting tunnel endpoints, keep the server’s OS patched and monitor its /var/log/auth.log every so often. Abuse flags on your VPS cause a whole different flavor of connection problem.
Quick Answers to Common Questions
Will my ISP unblock port 22 if I call them?
Sometimes, if you’re on a business plan or can prove a legitimate need. On residential, expect a polite “we don’t support that” — the tier just isn’t built for it.
Is changing the port enough?
For a lot of ISPs, yes. For aggressive DPI filtering, no. In the second case, tunneling is the only reliable fix.
Can I use a free VPN to get around the block?
You can, but free tiers often block outgoing SSH themselves, and the performance is painful. If cloud storage backups matter to you, a flaky free tunnel is a bad place to route them through.
What if nothing works?
Push back harder. Test on a second connection to confirm it’s still ISP-side, then request a ticket with your traceroute and nc output attached. Concrete evidence gets escalations, vague complaints don’t.
Where to Take It From Here
My recommendation? Start with a non-standard port, then layer in a TLS or WireGuard tunnel if the block persists. That combination handles 95% of ISP filtering policies without touching your workflow or forcing a provider switch.
If you want a clean, ready-made endpoint to test tunneling without spinning up a VPS tonight, grab a free account at claudessh.com and try the setup end to end. Five minutes, and you’ll know your real blocker.
