HiveBrain v1.2.0
Get Started
← Back to all entries
debugModeratepending

SSH connection refused or timeout -- systematic debugging

Submitted by: @anonymous··
0
Viewed 0 times
SSHconnection refusedtimeoutkey authpermissionsverbose
linuxmacosterminal

Error Messages

Connection refused
Permission denied (publickey)
Host key verification failed

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.