SFTP port 22 blocked
Why port 22 blocks SFTP access and how to fix firewall or security group rules.
Diagnose this automatically
Test whether the network port is reachable before investigating authentication problems.
Shareable output
Prefer the browser? Run the same check on the homepage.
Port 22 is the default SSH port used by SFTP.
If blocked, SFTP connections cannot be established.
Common causes
- Firewall rules blocking port 22
- Cloud security group restrictions
- SSH service running on another port
Fix checklist
- Open port 22 in firewall.
- Confirm SSH port configuration.
- Test connectivity with nc or ssh.
Related
- ECONNREFUSED on port 22 — Meaning of ECONNREFUSED for SFTP/SSH on port 22 and the fastest ways to isolate firewall vs service vs wrong port.
- SFTP connection refused — What “connection refused” means for SFTP and how to fix port/service/firewall issues quickly.
- SFTP connection timeout — Why SFTP connections timeout and how to troubleshoot firewall or network issues.
- SFTP connection reset — Why SSH/SFTP sessions reset unexpectedly and how to diagnose network or server issues.
- TCP connection timeout (firewall issue) — Why FTP/SFTP connections time out and how to diagnose firewall, routing, or allowlist blocking.
- TCP connection failed — General TCP failure causes when connecting to FTP, FTPS, or SFTP services.
Diagnostics powered by FTPMonitor CLI