mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-17 09:28:35 +01:00
Adding additional ssh-keygen command examples
This commit is contained in:
parent
1a1f87e131
commit
49d1daa97b
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,15 @@ ssh-keygen -t rsa
|
||||||
# To generate a 4096-bit SSH key:
|
# To generate a 4096-bit SSH key:
|
||||||
ssh-keygen -t rsa -b 4096
|
ssh-keygen -t rsa -b 4096
|
||||||
|
|
||||||
|
# To update a passphrase on a key
|
||||||
|
ssh-keygen -p -P old_passphrase -N new_passphrase -f /path/to/keyfile
|
||||||
|
|
||||||
|
# To remove a passphrase on a key
|
||||||
|
ssh-keygen -p -P old_passphrase -N '' -f /path/to/keyfile
|
||||||
|
|
||||||
|
# To generate a 4048 bit RSA key with a passphase and comment containing the user and hostname
|
||||||
|
ssh-keygen -t rsa -b 4048 -C "$USER@$HOSTNAME" -P passphrase
|
||||||
|
|
||||||
# To copy a key to a remote host:
|
# To copy a key to a remote host:
|
||||||
ssh-copy-id username@host
|
ssh-copy-id username@host
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue