1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-22 05:55:23 +02:00

ssh-keygen: add key format conversion (#6213)

This commit is contained in:
Alexandru Duzsardi 2021-08-17 21:03:15 +03:00 committed by GitHub
parent 491fc4f152
commit 2392183ef0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View file

@ -8,19 +8,15 @@
- Erstelle ein Schlüssel-Paar unter einem bestimmten Dateinamen:
`ssh-keygen -f ~/.ssh/{{datei}}`
`ssh-keygen -f {{~/.ssh/datei}}`
- Generiere ein ed25519 Schlüssel-Paar mit 100 Schlüssel-Ableitungs-Iterationen:
`ssh-keygen -t ed25519 -a 100`
`ssh-keygen -t {{ed25519}} -a {{100}}`
- Generiere ein 4096 Bit langen RSA Schlüssel-Paar mit der Email im Kommentarfeld:
`ssh-keygen -t rsa -b 4096 -C "{{email}}"`
- Rufe den Schlüssel-Fingerabdruck von einem Server ab (hilfreich um die Authentizität eines Servers beim ersten Verbinden zu überprüfen):
`ssh-keygen -l -F {{externer_server}}`
`ssh-keygen -t {{dsa|ecdsa|ed25519|rsa}} -b {{4096}} -C "{{kommentar|email}}"`
- 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):
@ -28,8 +24,12 @@
- Rufe den Fingerabdrucks eines Schlüssels im MD5 Hex Format ab:
`ssh-keygen -l -E md5 -f ~/.ssh/{{datei}}`
`ssh-keygen -l -E {{md5}} -f {{~/.ssh/datei}}`
- Ändere das Passwort eines privaten Schlüssels:
`ssh-keygen -p -f ~/.ssh/{{datei}}`
`ssh-keygen -p -f {{~/.ssh/datei}}`
- Ändern Sie den Typ des Schlüssel formats (z. B. vom OPENSSH-Format in PEM), die Datei wird an Ort und Stelle neu geschrieben:
`ssh-keygen -p -N "" -m {{PEM}} -f ~/.ssh/{{datei}}`

View file

@ -8,19 +8,15 @@
- Specify file in which to save the key:
`ssh-keygen -f ~/.ssh/{{filename}}`
`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}}`
- Generate an RSA 4096-bit key with email as a comment:
`ssh-keygen -t rsa -b 4096 -C "{{email}}"`
- Retrieve the key fingerprint from a host (useful for confirming the authenticity of the host when first connecting to it via SSH):
`ssh-keygen -l -F {{remote_host}}`
`ssh-keygen -t {{dsa|ecdsa|ed25519|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):
@ -28,8 +24,12 @@
- Retrieve the fingerprint of a key in MD5 Hex:
`ssh-keygen -l -E md5 -f ~/.ssh/{{filename}}`
`ssh-keygen -l -E {{md5}} -f {{~/.ssh/filename}}`
- Change the password of a key:
`ssh-keygen -p -f ~/.ssh/{{filename}}`
`ssh-keygen -p -f {{~/.ssh/filename}}`
- 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}}`