Display the Fingerprint of the Host Public Key

The first time a client user connects to the server, he or she sees a prompt that includes the fingerprint of the server's public host key. The server administrator can confirm the validity of the key by displaying the host key fingerprint on the server.

To display the fingerprint that identifies the server's public host key

  1. Log in to the server.
  2. Use ssh-keygen to display the host key fingerprint:

    ssh-keygen -F /etc/ssh2/hostkey.pub

Related Topics

Make an SSH Connection

Add a Key to the Client Known Hosts List