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

Written 28 Aug 2026. This is a how-to, not a product card.

See who logged into the computer recently

Before you buy a camera or a monitoring box, peek at the computer login history with last.

SSH from the couch works. You changed the password. Maybe a key login is already boring. Once in a while, ask who has been getting in. You are reading a short history the computer already keeps. You are not buying a camera, a SIEM, or a monitoring appliance for this look.

Skip until SSH works

If you have never logged in from the couch, that is SSH from the couch. Prefer a password you chose first: change the login password. This note assumes you can log in from the couch. It is a quiet look, not day-one homework.

What this is

A peek, not a shopping trip. last prints recent logins from the computer diary (who, when, from where on the house network). Your own SSH sessions will show up. That is normal. You are checking that the list looks like you, not a stranger. Failed password guesses are a different peek: see if anyone guessed the password.

Ask who logged in

SSH in from the couch, then run:

last -n 10

You should see a short table. Your username, pts/ or similar for SSH, a time, and often a house address or hostname. Empty or only your lines is fine. Don't buy anything because the table printed once.

Optional: show the source address

If the from column is truncated and you want the address:

last -n 5 -a

Keep this note on the short list. You don't need a fancy log viewer for ten lines.

If a line looks wrong

Stop. Change the password again: change the login password. Prefer a key, then turn password login off when the key is boring: log in with a key, not the password every time, then turn off password login once the key works. Keep SSH on the house network only: keep the computer on the house network. Don't forward port 22. Don't buy a camera for one odd line until you understand the list.

What next

Leave it. Once a week is enough for this peek after the login habit is boring. For who is on right now, see see who is on the computer right now. The firewall path is turn on a simple firewall without locking yourself out. Failed guesses are see if anyone guessed the password. Guess-slowing later is slow down password guesses on SSH. The first rule stays start with what you already have.

Skip

Sources

Debian: last. Ubuntu: last. Official pages only. For the login, see SSH from the couch. For a password you chose, see change the login password. For keys, see log in with a key, not the password every time. For failed guesses, see see if anyone guessed the password. For the house-network boundary, see keep the computer on the house network.

Also on this topic

Change the login passwordOnce SSH from the couch works, set a password you chose. Do this before you leave the install password sitting around. Log in with a key, not the password every timeAfter password SSH works for a while, put a key on your laptop so the computer trusts that laptop. Keep the password as a backup at first. Turn off password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the password. The key is how you get in. A keyboard on the computer is the backup now. Slow down password guesses on SSHAfter the firewall is on and key login is boring, you can let the computer briefly refuse an address that keeps guessing the password. Skip this on day one. Don't forward port 22. Keep the computer on the house networkSSH and Pi-hole belong on the house network. Skip this if you never opened the router settings. Don't forward port 22. Turn on a simple firewall without locking yourself outAfter SSH from the couch works, allow OpenSSH, then turn on ufw. The computer stays reachable. Surprise inbound ports don't. See who is on the computer right nowBefore you buy a camera or a monitoring box, ask who is logged into the computer right now with who. See if anyone guessed the passwordBefore you buy a camera or extra login software, peek at failed logins with lastb. SSH from the couchType commands on the computer from your laptop, on the house network. Password login first. Don't open this to the internet.