Quick Presets
Device / OS
macOS
Linux
Windows
Algorithm
Options
Used as -C flag in ssh-keygen
Leave empty for default (~/.ssh/id_ed25519)
Remote Server (optional)
Adds ssh-copy-id and connection test steps
5 Steps
$ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519You'll be prompted to enter a passphrase
$ chmod 600 ~/.ssh/id_ed25519 && chmod 644 ~/.ssh/id_ed25519.pub$ eval "$(ssh-agent -s)" && ssh-add --apple-use-keychain ~/.ssh/id_ed25519Persists across reboots via macOS Keychain
$ pbcopy < ~/.ssh/id_ed25519.pub$ cat ~/.ssh/id_ed25519.pubAlgorithm Reference
| Algorithm | Key Size | Security | Compat |
|---|---|---|---|
| Ed25519 | 256-bit | Excellent | OpenSSH 6.5+ |
| RSA | 2048–4096 | Good (4096) | Universal |
| ECDSA | 256–521 | Good | OpenSSH 5.7+ |