ssh-keygen
Installation
SKILL.md
Identity
| Property | Value |
|---|---|
| Binary | ssh-keygen |
| Config | ~/.ssh/config, ~/.ssh/authorized_keys, ~/.ssh/known_hosts |
| Logs | No persistent logs — output to terminal |
| Type | CLI tool |
| Install | apt install openssh-client / dnf install openssh-clients (pre-installed) |
Key Operations
| Task | Command |
|---|---|
| Generate Ed25519 keypair (preferred) | ssh-keygen -t ed25519 -C "user@host" -f ~/.ssh/id_ed25519 |
| Generate RSA keypair (4096-bit, legacy compat) | ssh-keygen -t rsa -b 4096 -C "user@host" -f ~/.ssh/id_rsa |
| Generate without passphrase (automation) | ssh-keygen -t ed25519 -N "" -f /etc/myapp/ssh_key |
| Show key fingerprint | ssh-keygen -l -f ~/.ssh/id_ed25519 |
| Show fingerprint in SHA256 (default) | ssh-keygen -l -E sha256 -f ~/.ssh/id_ed25519 |
Related skills