</>CodexBash
All articles
Security

SSH keys explained

How SSH key authentication works and how to use it safely: public and private keys, generating Ed25519 keys, authorized_keys on servers, passphrases and ssh-agent, the ~/.ssh/config file, host key verification and known_hosts, hardening the SSH server, agent forwarding risks, and hardware-backed keys.

CodexBash, , 6 min read

SSH (Secure Shell) is how developers log into servers, deploy code, tunnel to databases and push to GitHub. It can authenticate with passwords, but SSH keys are both more secure and more convenient: nothing secret is ever sent to the server, there is no password to guess, and with an agent you type a passphrase once a day instead of a password every time. This article explains how key authentication works, how to set it up properly, and the security details that matter.

Sign in to read the rest

The whole 6 minute article is free with an account, along with every problem, lesson and tutorial. No card.