How to Fix SSH “Connection Refused” and “Permission Denied (publickey)”
Can't SSH into your server? Whether you get "Connection refused" on port 22, a timeout or "Permission denied (publickey)", here's what each error means and how to fix it in a few minutes, even when you're locked out.