Skip to content

Commit

Permalink
Merge branch 'ssh/fido' of https://github.com/kasecato/cheatsheets in…
Browse files Browse the repository at this point in the history
…to kasecato-ssh/fido
  • Loading branch information
chrisallenlane committed Jul 16, 2020
2 parents acf0cb6 + dd0b773 commit d504c72
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
20 changes: 20 additions & 0 deletions ssh-add
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
tags [ ssh ]
---
# To add private key:
ssh-add <keyfile>

# To load resident keys from FIDO2 authenticator:
ssh-add -K

# To list all public keys:
ssh-add -L

# To list fingerprints of all keys:
ssh-add -l

# To delete key:
ssh-add -d <keyfile>

# To delete all keys:
ssh-add -D
11 changes: 10 additions & 1 deletion ssh-keygen
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
---
tags [ ssh ]
---
# To generate an SSH key:
# To generate a SSH key:
ssh-keygen -t rsa

# To generate a 4096-bit SSH key:
ssh-keygen -t rsa -b 4096

# To generate a FIDO/U2F token-backed key:
ssh-keygen -t ed25519-sk

# To generate a FIDO2 resident key:
ssh-keygen -t ed25519-sk -O resident

# To update a passphrase on a key:
ssh-keygen -p -P <old-passphrase> -N <new-passphrase> -f <keyfile>

Expand All @@ -21,3 +27,6 @@ ssh-keygen -lf <keyfile>

# To print the Github-style (MD5) fingerprint of a public key:
ssh-keygen -E md5 -lf <keyfile>

# To download resident keys from a FIDO2 authenticator to the current directory:
ssh-keygen -K

0 comments on commit d504c72

Please sign in to comment.