>>>>> 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