Merge pull request #48 from gbremer/master

Adding less cheat sheet
This commit is contained in:
Chris Lane 2013-09-01 10:12:16 -07:00
commit 29a3fa0254
2 changed files with 11 additions and 0 deletions

2
cheatsheets/less Normal file
View File

@ -0,0 +1,2 @@
# To disable the terminal refresh when exiting
less -X

View File

@ -4,6 +4,15 @@ 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
# 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:
ssh-copy-id username@host