view ssh RSA key fingerprint of server

Upon first ssh connection, ssh public key fingerprint is displayed.

To confirm the connection is indeed with the expected server, either you already know the public key fingerprint or simply display it again to confirm it is the expected one:

  1. connect to server
  2. usually rsa public key is stored under /etc/ssh/ssh_host_rsa_key.pub
  3. to generate fingerprint, run:
    ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub

That’s it, output of the form “xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx”.

Sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...