Labthrift Labthrift What to buy. What to skip. Why.

Written 26 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.

Turn off leftover-box password login once the key works

After the laptop key login is boring, tell SSH to stop accepting the leftover-box password. The key is how you get in. A keyboard on the leftover box is the backup now.

PasswordAuthentication is the leftover-box password at the SSH prompt. Once the laptop key works every time, you can tell SSH to stop accepting that password. The key is how you get in from the couch. A screen and keyboard on the leftover box are the backup if the laptop dies.

Skip until the key login is boring

Log in with a key should already be boring. If SSH from the couch still asks for the leftover-box password, stop. Finish the key first. Do not turn off password login on a login that still needs the password.

What this changes

Password login from another computer stops working. The laptop key still works. If that laptop dies, you need a screen and keyboard on the leftover box, or a second key already copied onto another computer. That is why this is later, not first weekend. Keep the leftover-box password on the box itself. You still type it at a local keyboard. You just cannot type it at an SSH prompt from the house anymore.

Keep this SSH window open

Stay logged in. Open a second terminal on the laptop and prove the key login works first:

ssh you@that-address

Swap you and that-address the way SSH from the couch taught you. It should not ask for the leftover-box password. If it does, stop. Go back to log in with a key.

Turn off password login

Prefer a drop-in file so you do not hunt comments in sshd_config. On the leftover box, in the first SSH window, write one line:

echo 'PasswordAuthentication no' | sudo tee /etc/ssh/sshd_config.d/99-no-password.conf

Check the config before you reload:

sudo sshd -t

If that says the command is missing, try the full path:

sudo /usr/sbin/sshd -t

No news is good news. Then reload SSH so the drop-in takes effect. Keep the first session open.

sudo systemctl reload ssh

If reload says the unit is sshd, use:

sudo systemctl reload sshd

Try it

From the laptop, a new login:

ssh you@that-address

The key should still get you in. A password-only attempt from a machine that has no key should be refused. Do not close the original SSH window until the new one works.

If you lock yourself out

Plug a screen and keyboard into the leftover box. Log in locally with the leftover-box password. Remove the drop-in, then reload:

sudo rm /etc/ssh/sshd_config.d/99-no-password.conf

sudo systemctl reload ssh

If that unit name is wrong, sudo systemctl reload sshd is the Debian spelling. Do not forward port 22 on the router. SSH stays on the house network. That is keep the leftover box on the house network.

What next

If the firewall is not on yet, turn on a simple firewall without locking yourself out. Once a week, keep the leftover box updated. Skip fail2ban. Skip a YubiKey. Skip opening SSH to the internet.

Skip

Sources

OpenSSH: sshd_config. Debian: sshd_config. Ubuntu: OpenSSH server. Official pages only. For the key, see log in with a key. For the login, see SSH from the couch. For the house-network boundary, see keep the leftover box on the house network. For the firewall, see turn on a simple firewall without locking yourself out.

Also on this topic

Log in with a key, not the password every timeAfter password SSH works for a while, put a key on your laptop so the leftover box trusts that laptop. Keep the password as a backup at first. SSH from the couchType commands on the leftover box from your laptop, on the house network. Password login first. Do not open this to the internet. Turn on a simple firewall without locking yourself outAfter SSH from the couch works, allow OpenSSH, then turn on ufw. The leftover box stays reachable. Surprise inbound ports do not. Keep the leftover box on the house networkSSH and Pi-hole belong on the house network. Skip this if you never opened the router settings. Do not forward port 22.