debugModeratepending
SSH connection refused or timeout -- systematic debugging
Viewed 0 times
SSHconnection refusedtimeoutkey authpermissionsverbose
linuxmacosterminal
Error Messages
Problem
Cannot SSH into a server. Connection refused, times out, or key auth fails.
Solution
Debug: (1) Is sshd running? (2) Port 22 open? Check firewall/security groups. (3) ssh -vvv for verbose. (4) Permissions: chmod 700 ~/.ssh, chmod 600 keys. (5) Check ssh-add -l for loaded keys.
Why
SSH failures span network, firewall, daemon config, and permissions. The -vvv flag shows the exact failure point.
Revisions (0)
No revisions yet.