1
0
mirror of https://github.com/cheat/cheat.git synced 2024-12-23 21:19:44 +01:00
cheat/cheatsheets/ssh-keygen

15 lines
460 B
Plaintext
Raw Normal View History

# To generate an SSH key:
ssh-keygen -t rsa
# To generate a 4096-bit SSH key:
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
2013-09-21 19:15:09 +02:00
# To generate a 4096 bit RSA key with a passphase and comment containing the user and hostname
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME" -P passphrase