FTPMonitor / Errors / ECONNREFUSED on port 22

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.

ECONNREFUSED means the TCP handshake was rejected. The host is up, but the port is closed or blocked.

Common causes

  • SSH/SFTP service not running
  • SSH is on a non-standard port (not 22)
  • Firewall/device rejects connections to port 22

Fix checklist

  1. Confirm SSH is listening on port 22 (or the configured port).
  2. Verify inbound firewall rules allow your source IP.
  3. If the server is internal-only, run checks from inside the network/VPN.

Quick commands

nc -vz <host> 22
ssh -vvv <user>@<host> -p 22
FTPMonitor Help

Still stuck? We can help diagnose and fix it.

Choose the level of help that matches the urgency. Never send passwords, private keys, or other secrets.

Fix Report
$49
A written diagnosis and recommended fix for one FTP, FTPS, or SFTP issue.
  • Written diagnosis
  • Recommended fix steps
  • Best for non-urgent issues
Recommended
Same-Day Help
$149
Priority troubleshooting for one active issue, with a clear same-day diagnosis and action plan.
  • Priority troubleshooting
  • Same-day diagnosis and action plan
  • Best for active business problems
Live Fix Call
$299
Live troubleshooting help for an urgent or unusually complex FTP, FTPS, or SFTP problem.
  • Live troubleshooting session
  • Best for urgent or complex failures
  • Scheduling coordinated after checkout
Related
Diagnostics powered by FTPMonitor CLI