Languages
[Edit]
EN

SSH - verify used local and server key fingerprints (Windows - Linux connection verification)

6 points
Created by:
Imaan-Morin
1009

In this short article, we would like to show you, how to verify used locally SSH keys with the keys stored on the Linux server using ssh-keygen under Bash.

Note: the below examples use as default SHA-256 algorithm, to change it add -E md5 or -E sha1 parameter.

 

Simple steps:

  1. run locally on your PC (with Windows) following command:

    Example output:

     
  2. run on your server (with Linux) following commands:

    Example outputs:

     
  3. compare SHA256 fingerprints.
    If there are some differences that means some security issue and you should verify if there is no Man-in-the-middle attack used.

 

See also

Edit
  1. Bash - print fingerprints for SSHD keys (md5, sha-1, sha-A256 fingerprints)

References

Edit
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join