ssh-keygen -t ed25519 -N '' -f ~/.ssh/deploy_key

Category: Security & Hardening

ssh-keygen -t ed25519 -N '' -f ~/.ssh/deploy_key

Generate a passwordless key for automation

Creates an Ed25519 key with an empty passphrase, stored as ~/.ssh/deploy_key, so scripts and CI jobs can log in unattended. The -N '' flag sets no passphrase, and -f names the file. Only do this for keys with limited, revocable access, since anyone who steals the file can use the key.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.