whatis ssh-key

SSH Key

Also known as: public key, private key, ed25519, authorized_keys

A public/private key pair used to log in over SSH without a password. The public key goes on the server; the private key stays with you.

What Is SSH Key in Linux?

ssh-keygen -t ed25519 creates a key pair. Copy the public half into the server's ~/.ssh/authorized_keys (with ssh-copy-id), and the server can verify you hold the private half without it ever crossing the network.

Keys are far stronger than passwords and let you disable password login entirely. Protect the private key with a passphrase and use ssh-agent so you only type it once per session.

Example

ssh-keygen -t ed25519 -C "laptop"
ssh-copy-id alice@server