ssh-keygen: small improvement and fix (#10261)

This commit is contained in:
cyqsimon
2023-06-23 13:51:32 +08:00
committed by GitHub
parent 46fbef121f
commit 97a342ad35
3 changed files with 9 additions and 9 deletions

View File

@@ -7,13 +7,13 @@
`ssh-keygen`
- Generate an ed25519 key with 100 key derivation function rounds and save the key to a specific file:
- Generate an ed25519 key with 32 key derivation function rounds and save the key to a specific file:
`ssh-keygen -t {{ed25519}} -a {{100}} -f {{~/.ssh/filename}}`
`ssh-keygen -t {{ed25519}} -a {{32}} -f {{~/.ssh/filename}}`
- Generate an RSA 4096-bit key with email as a comment:
`ssh-keygen -t {{dsa|ecdsa|ed25519|rsa}} -b {{4096}} -C "{{comment|email}}"`
`ssh-keygen -t {{rsa}} -b {{4096}} -C "{{comment|email}}"`
- Remove the keys of a host from the known_hosts file (useful when a known host has a new key):