To find the finger print of the publickey
hegars@hegars:~$ ssh-keygen -lf ~/.ssh/id_rsa.pub
2048 SHA256:TE………………………………………………………9I6k [email protected] (RSA)
Or in MD5
hegars@hegars:~$ ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub
2048 MD5:7e:a1:……………………………………………………..:2d:72 [email protected] (RSA)
Get finger print from ssh-agent
Start ssh-agent
hegars@hegars:~$ eval “$(ssh-agent -s)”
add the key
hegars@hegars:~$ ssh-add /home/hegars/.ssh/id_rsa
hegars@hegars:~$ ssh-add -l
2048 SHA256:TE……………………………………………….9I6k /home/hegars/.ssh/id_rsa (RSA)
and in MD5
hegars@hegars:~$ ssh-add -l -E md5
2048 MD5:7e:a1………………………………………………:2d:72 /home/hegars/.ssh/id_rsa (RSA)