FTPMonitor / Guides / SFTP port 22 blocked

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.

terminal
npx ftpmonitor check --protocol sftp --host sftp.example.com --port 22
Shareable output
terminal
npx ftpmonitor check --protocol sftp --host sftp.example.com --port 22 --format slack --copy

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

  1. Open port 22 in firewall.
  2. Confirm SSH port configuration.
  3. Test connectivity with nc or ssh.
Related
Diagnostics powered by FTPMonitor CLI