How to get the MD5 Fingerprint RSA Key for a Linux Server

black and white printer paper
Photo by cottonbro on Pexels.com

If you’re writing code to connect to a Linux server over SSH or SFTP, you may need to get the MD5 “fingerprint” of the server. It’s that funny little string of numbers that appears, just once, when you connect to a server and you never see again unless it changes…

ssh-keygen -l -E md5 -f <(ssh-keyscan localhost 2>/dev/null)

Be the first to comment

Leave a Reply

Your email address will not be published.


*