Shaf Lab

SSH keys

Cryptographic keys that authenticate you to a remote machine over SSH.

SSH keys are cryptographic credentials that prove who you are to a remote machine, without sending a password each time. A private key stays on your laptop or on a hardware token; the public key is listed on the server. This is still the standard way to reach a shell, a Git host, or a jump box.

A hardware token is a good idea when the key can open production, or when the laptop is also used for everyday browsing. The token keeps the private key off the disk and requires a touch or a PIN for each use. Software keys are fine for low-risk, short-lived environments if they are encrypted and not copied around.

Use separate keys for different trust levels, disable password login on servers, and prefer short-lived certificates if your shop supports them. Agent forwarding and shared jump hosts are common places keys leak, so be deliberate about them. When someone leaves, you should be able to revoke their access without rotating every machine by hand.

A mesh VPN or a tunnel may remove the need to expose SSH to the internet, but you should still use keys or certificates on the path that remains.