Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to compute the MD5 and SHA-1 fingerprints of an RSA key in a Linux server?

46 views
Skip to first unread message

Ivan Shmakov

unread,
Apr 29, 2013, 2:03:58 PM4/29/13
to
>>>>> Ramon F Herrera <gopo...@jonjay.com> writes:

[Cross-posting to news:comp.unix.shell.]

[...]

> % cp /etc/ssh/ssh_host_rsa_key.pub actual-key.b64

> Next, edit the 'actual-key.b64' file and remove the first characters
> ("ssh-rsa ").

> % base64 -d -i actual-key.b64 > actual-key.bin

> % md5sum actual-key.bin
> % sha1sum actual-key.bin

Naturally, one doesn't have to have so much files for such a
simple task. Consider instead, e. g.:

$ cut -d ' ' -f 2 < /etc/ssh/ssh_host_rsa_key.pub | base64 -d | sha1sum

[...]

--
FSF associate member #7257
0 new messages