Re: id_rsa.pub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux