Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Ramon F Herrera
April 28, 2013, 12:19 am
rate this thread
I have tried this:
% cd /etc/ssh
% md5sum ssh_host_rsa_key.pub
% sha1sum ssh_host_rsa_key.pub
The file contains 2 equal signs ('='), plus one space and a newline at
the end. I tried removing them but the 2 sums still look incorrect.
Perhaps I need to compute those sums on a binary as opposed to an
Re: How to compute the MD5 and SHA-1 fingerprints of an RSA key in a Linux server?
[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
- » is it possible to use public key auth and otp using pam?
- — Previous thread in » Secure Shell Forum
- » protocol question - issue with exit-status inside unfinished data stream?
- — Newest thread in » Secure Shell Forum