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

pull/23/head
cyqsimon 2023-06-23 13:51:32 +08:00 committed by GitHub
parent 46fbef121f
commit 97a342ad35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -11,13 +11,13 @@
`ssh-keygen -f {{~/.ssh/datei}}`
- Generiere ein ed25519 Schlüssel-Paar mit 100 Schlüssel-Ableitungs-Iterationen:
- Generiere ein ed25519 Schlüssel-Paar mit 32 Schlüssel-Ableitungs-Iterationen:
`ssh-keygen -t {{ed25519}} -a {{100}}`
`ssh-keygen -t {{ed25519}} -a {{32}}`
- Generiere ein 4096 Bit langen RSA Schlüssel-Paar mit der E-Mail im Kommentarfeld:
`ssh-keygen -t {{dsa|ecdsa|ed25519|rsa}} -b {{4096}} -C "{{kommentar|e-mail}}"`
`ssh-keygen -t {{rsa}} -b {{4096}} -C "{{kommentar|e-mail}}"`
- Entferne den Schlüssel eines Servers aus der `known_hosts` Datei (hilfreich wenn ein Server seinen Schlüssel aktualisiert hat und der alte somit nicht mehr gilt):

View File

@ -11,13 +11,13 @@
`ssh-keygen -f {{~/.ssh/fichier}}`
- Génère une clé ed25519, avec 100 passages de fonction de dérivation de clé:
- Génère une clé ed25519, avec 32 passages de fonction de dérivation de clé:
`ssh-keygen -t {{ed25519}} -a {{100}}`
`ssh-keygen -t {{ed25519}} -a {{32}}`
- Génère une clé RSA de 4096 bits, avec l'adresse électronique en commentaire:
`ssh-keygen -t {{dsa|ecdsa|ed25519|rsa}} -b {{4096}} -C "{{commentaire|email}}"`
`ssh-keygen -t {{rsa}} -b {{4096}} -C "{{commentaire|email}}"`
- Retire les clés d'une machine donnée du fichier `known_hosts` des hôtes connus (utile lorsque un hôte déjà enregistré change de clé) :

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):