Written 4 Sep 2026. This is a how-to, not a product card.
When SSH won't connect
SSH hangs, says connection refused, or Permission denied. Check the computer is on, confirm the address, then the user and password. You don't need a new router or a KVM.
Haven't reached it from the couch yet? Start with SSH from the couch. Need the number first? Find it on the house network. This note is only for when the connect step fails, or used to work and now doesn't.
Skip until you have a real error
Copy the exact line from the terminal. "Connection refused," "Connection timed out," "Permission denied," and "REMOTE HOST IDENTIFICATION HAS CHANGED" are different fixes. Don't buy anything for a typo.
What this is
SSH needs three things that still match: the computer awake on the house network, the address you type, and the user plus password (or key) from install. One of those usually drifted. Soft-off, a new DHCP lease, a wrong username, or a wiped OS that changed the host key. The walk below is order of cheap checks.
Step 1: is the computer awake?
Power light. Fan. Screen if it has one. If it looks asleep or dead, start with is the computer still on?. Soft-off on purpose? Wake it from the house network: wake the computer from the house network. A laptop that slept with the lid closed needs don't let the laptop sleep before you chase SSH bugs.
Step 2: confirm the address
Don't reuse last week's number from memory. Look it up again: find it on the house network. Write it down. Try:
ssh youruser@192.168.1.50
Use the real user and the number you just found, not that example. If the ISP swapped the gateway, the old lease is gone: when the ISP swaps your router. If Nest will not reserve DHCP, pin the number on the computer: give the computer a fixed address when the router won't.
Step 3: match the error to a fix
| What you see | What to do |
|---|---|
| Connection timed out | Wrong address, wrong Wi-Fi (guest vs house), or the computer is off. Confirm Step 1 and Step 2. Stay on the main house network, not guest Wi-Fi. |
| Connection refused | The computer answered, but nothing is listening on port 22. Plug in a screen once and install the server: sudo apt install openssh-server. If ufw is on, allow SSH: sudo ufw allow OpenSSH. Intentional firewall later: turn on a simple firewall without locking yourself out. |
| Permission denied | Wrong user or wrong password. Use the account from install, not Administrator, not root, not pi unless you named it pi. Caps Lock off. Nothing shows as you type the password. That is normal. |
| Host key / identification has changed | You reinstalled, or the laptop still remembers an old fingerprint. Clear that memory: when SSH says the computer looks different. |
Step 4: same Wi-Fi, same house
Your laptop or phone must be on the main house Wi-Fi (or a cable into the same router). Guest Wi-Fi often cannot see the computer on purpose. VPN apps on the phone can hide the house LAN. Turn the VPN off for this test. Phone SSH is the same rules: SSH from a phone.
Check
From the laptop on house Wi-Fi:
ssh youruser@THE-ADDRESS
You should get a password prompt (or a key login), then a shell. Run:
hostname
That name should be the old PC. Type exit to leave. If this works once and fails after a reboot, reserve the address or set a fixed one so the number stops moving.
What this is not
This is not a reason to forward port 22 to the internet. It is not a KVM purchase for day-two flakiness. It is not fail2ban, a new SSH port, or Tailscale tonight. House network only until you actually need coffee-shop access.
What next
First successful login still lives on SSH from the couch. Phone on house Wi-Fi: SSH from a phone. Change a weak install password: change the login password. After a boring week of passwords, log in with a key, not the password every time. Keep SSH off the public internet: keep it on the house network. Next useful job on the box is still the first useful thing.
Skip
- Skip opening port 22 on the router.
- Skip buying a KVM for a refused or timed-out connect.
- Skip changing the SSH port on day one.
- Skip fail2ban until SSH is boring from the couch.
- Skip Tailscale or WireGuard until you leave the house on purpose.
- Skip guessing last week's address instead of finding it again.
Sources
Ubuntu Server: OpenSSH server. Debian: ssh man page. OpenBSD: ssh. Official pages only. For the first connect, see SSH from the couch. For the address, see find it on the house network. For a host-key scare after a wipe, see when SSH says the computer looks different.