David Hláèik wrote, On 09/25/2008 07:35 AM:
Hi guys, i have reinstalled my laptop with Fedora 9.
I have my RSA private key in .ssh/id_rsa . How to generate public key
which i can use from private RSA key? (to have .ssh/id_rsa.pub).
Thanks!
ssh-keygen -t rsa -b512 -C 'a test key' -N 'junkme'
mv id_rsa.pub id_rsa.pub.orig
ssh-keygen -f id_rsa -e >SECSHpkff
ssh-keygen -i -f SECSHpkff > SECSHpkff.ossh
cat id_rsa.pub.orig ;echo " ";cat SECSHpkff.ossh
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAEEA2B/62aUjcZW4kZJRnL/mS0pNIuIt6BCVc6y2V24trV6H90qqud1Jy3mOT4ZuRru53LYtURENZPVXBPqzqYJ7QQ==
a test key
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAEEA2B/62aUjcZW4kZJRnL/mS0pNIuIt6BCVc6y2V24trV6H90qqud1Jy3mOT4ZuRru53LYtURENZPVXBPqzqYJ7QQ==
Visual diff indicates a delta in the comment portion, but otherwise the same.
...
So
ssh-keygen -f id_rsa -e >SECSHpkff
ssh-keygen -i -f SECSHpkff > id_rsa.pub
should get your public side back. There is probably an easier way, but this
worked.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines