Written 28 Aug 2026. This is a how-to, not a product card.
Give the computer a short name on your laptop
After SSH works, put a short name in your laptop SSH config so you type ssh lab instead of the long address every time. You don't need a new router.
SSH from the couch taught you ssh you@that-address. That works. It is also a lot to type when you check Pi-hole or a share every day. A short name is a few lines in a file on your laptop. The computer does not change. This is not a new hostname on the house network. Prefer a reserved number first so the address in the file stays true: keep the computer on the same number.
Skip until SSH is boring
If SSH from the couch still fails, stop. Fix that first. If the address changes after every reboot, reserve it before you lock a number into this file. A key login is nicer with a short name, but not required: log in with a key, not the password every time. This note is laptop-side only.
What this file is
On your laptop, OpenSSH reads ~/.ssh/config. A Host block is a nickname. When you type that nickname, SSH fills in the real address and username for you. The computer never sees the nickname. It still sees a normal SSH login.
Add a Host block
On the laptop (Windows Terminal, PowerShell, Mac Terminal, or Linux), create the folder if it is missing, then open the file:
mkdir -p ~/.ssh
chmod 700 ~/.ssh
nano ~/.ssh/config
If the file already has other Host blocks, leave them. Add this at the end. Swap the username and the house number the way SSH from the couch taught you. Prefer the reserved number from keep the computer on the same number:
Host lab HostName 192.168.1.50 User you
Save and quit (in nano: Ctrl+O, Enter, then Ctrl+X). That nano is on your laptop. To edit a file that lives on the computer, see edit a computer file from the couch. Then lock the file down:
chmod 600 ~/.ssh/config
Optional: if your key is not the default path, add one more line under that Host block:
IdentityFile ~/.ssh/id_ed25519
That is the private key file from log in with a key, not the .pub file.
Try it
From the same laptop:
ssh lab
You should land on the computer prompt the same way as before. If it asks for a password or key passphrase, that is normal until you harden later. If it says Host key verification failed after a reinstall, that is when SSH says the computer looks different, not a bad config nickname.
What next
Need one file over without a USB stick? Copy a file to the computer from your laptop. Before you turn off password login, see which laptop keys the computer already trusts, then put a key on a second computer first. When both computers get in with ssh lab, turn off password login once the key works. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
Skip
- Skip if SSH from the couch still fails.
- Skip buying a jump host, bastion, or VPN appliance for a computer on the house network.
- Skip a YubiKey for this nickname.
- Skip editing computer
sshd_configfor a laptop shortcut. That harden step is later. - Skip opening SSH to the internet.
Sources
OpenSSH: ssh_config. Debian: ssh_config. Official pages only. For the login, see SSH from the couch. For a number that stays put, see keep the computer on the same number. For the key, see log in with a key. For the trusted-key list, see see which laptop keys the computer already trusts. For a second computer, see put a key on a second computer first.