diff --git a/pages/common/ssh-keygen.md b/pages/common/ssh-keygen.md index 06c034c87..46e2b8c43 100644 --- a/pages/common/ssh-keygen.md +++ b/pages/common/ssh-keygen.md @@ -7,13 +7,9 @@ `ssh-keygen` -- Specify file in which to save the key: +- Generate an ed25519 key with 100 key derivation function rounds and save the key to a specific file: -`ssh-keygen -f {{~/.ssh/filename}}` - -- Generate an ed25519 key with 100 key derivation function rounds: - -`ssh-keygen -t {{ed25519}} -a {{100}}` +`ssh-keygen -t {{ed25519}} -a {{100}} -f {{~/.ssh/filename}}` - Generate an RSA 4096-bit key with email as a comment: @@ -34,3 +30,7 @@ - Change the type of the key format (for example from OPENSSH format to PEM), the file will be rewritten in-place: `ssh-keygen -p -N "" -m {{PEM}} -f {{~/.ssh/OpenSSH_private_key}}` + +- Retrieve public key from secret key: + +`ssh-keygen -y -f {{~/.ssh/OpenSSH_private_key}}`