ssh-keygen: add key format conversion (#6213)
This commit is contained in:

committed by
GitHub

parent
491fc4f152
commit
2392183ef0
@@ -8,19 +8,15 @@
|
|||||||
|
|
||||||
- Erstelle ein Schlüssel-Paar unter einem bestimmten Dateinamen:
|
- 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:
|
- 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:
|
- Generiere ein 4096 Bit langen RSA Schlüssel-Paar mit der Email im Kommentarfeld:
|
||||||
|
|
||||||
`ssh-keygen -t rsa -b 4096 -C "{{email}}"`
|
`ssh-keygen -t {{dsa|ecdsa|ed25519|rsa}} -b {{4096}} -C "{{kommentar|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}}`
|
|
||||||
|
|
||||||
- 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):
|
- 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:
|
- 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:
|
- Ä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}}`
|
||||||
|
@@ -8,19 +8,15 @@
|
|||||||
|
|
||||||
- Specify file in which to save the key:
|
- 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:
|
- 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:
|
- Generate an RSA 4096-bit key with email as a comment:
|
||||||
|
|
||||||
`ssh-keygen -t rsa -b 4096 -C "{{email}}"`
|
`ssh-keygen -t {{dsa|ecdsa|ed25519|rsa}} -b {{4096}} -C "{{comment|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}}`
|
|
||||||
|
|
||||||
- Remove the keys of a host from the known_hosts file (useful when a known host has a new key):
|
- 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:
|
- 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:
|
- 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}}`
|
||||||
|
Reference in New Issue
Block a user