From cb6fc61c0a1240f04e5bb7cc7c4f1f0699ab1377 Mon Sep 17 00:00:00 2001 From: Jonny-exe <69385502+Jonny-exe@users.noreply.github.com> Date: Wed, 7 Oct 2020 20:35:46 +0200 Subject: [PATCH 1/2] Added an option Added how to calculate the public ssh key from the private ssh key --- ssh-keygen | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssh-keygen b/ssh-keygen index c2e5288..8ad7721 100644 --- a/ssh-keygen +++ b/ssh-keygen @@ -30,3 +30,7 @@ ssh-keygen -E md5 -lf # To download resident keys from a FIDO2 authenticator to the current directory: ssh-keygen -K + +# To calculate the Public ssh key from the Private ssh key +ssh-keygen -y -f > +ssh-keygen -y -f ~/.ssh/private-key > ~/.ssh/public-key.pub From 52efc8dcbbb5d01e2671bdefde77d8bb11c4041c Mon Sep 17 00:00:00 2001 From: Chris Allen Lane Date: Mon, 9 Nov 2020 18:56:11 -0500 Subject: [PATCH 2/2] chore(ssh-keygen): minor edits Minor edits to the `ssh-keygen` cheatsheet. --- ssh-keygen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh-keygen b/ssh-keygen index 8ad7721..eb0d04a 100644 --- a/ssh-keygen +++ b/ssh-keygen @@ -31,6 +31,6 @@ ssh-keygen -E md5 -lf # To download resident keys from a FIDO2 authenticator to the current directory: ssh-keygen -K -# To calculate the Public ssh key from the Private ssh key -ssh-keygen -y -f > +# To view the public key associated with a private key: +ssh-keygen -y -f > ssh-keygen -y -f ~/.ssh/private-key > ~/.ssh/public-key.pub