$ ssh-keygen -lf /path/to/keys/id_rsa.pub
2048 SHA256:rj89aIMaGe6SADuvsnItdE/NgCYJcnU4R0e3PSK8UKak (RSA)
$ ssh-keygen -lvf /path/to/keys/id_rsa.pub
2048 SHA256:rj89aIMaGe6SADuvsnItdE/NgCYJcnU4R0e3PSK8UKak (RSA)
+---[RSA 2048]----+ | ..+* . | |o . + . . | |o.. o o . | | . . o o = | |. * . S * | |+ ..E . o + | |oo oo . o.. o | |=oo.oo....o | |+Bo.o++..o . |
+----[SHA256]-----+
$ ssh-keygen -l -E md5 -f /path/to/keys/id_rsa.pub
2048 MD5:98:ab:f6:d0:bc:49:8b:ae:4b:89:29:c3:d1:a8:82:59 (RSA)
This works in mac or any linux based terminal.
2048 SHA256:rj89aIMaGe6SADuvsnItdE/NgCYJcnU4R0e3PSK8UKak (RSA)
$ ssh-keygen -lvf /path/to/keys/id_rsa.pub
2048 SHA256:rj89aIMaGe6SADuvsnItdE/NgCYJcnU4R0e3PSK8UKak (RSA)
+---[RSA 2048]----+ | ..+* . | |o . + . . | |o.. o o . | | . . o o = | |. * . S * | |+ ..E . o + | |oo oo . o.. o | |=oo.oo....o | |+Bo.o++..o . |
+----[SHA256]-----+
$ ssh-keygen -l -E md5 -f /path/to/keys/id_rsa.pub
2048 MD5:98:ab:f6:d0:bc:49:8b:ae:4b:89:29:c3:d1:a8:82:59 (RSA)
This works in mac or any linux based terminal.