How to generate a fingerprint of an SSH key? Aug 18, 2018 Run the following: $ ssh-keygen -l -f /PATH/TO/PUBLIC/KEY Or for the old MD5 fingerprint: $ ssh-keygen -l -E md5 -f /PATH/TO/PUBLIC/KEY