✓ Solved
how can i see host key’s fingerprint on ssh
how can i see host key’s fingerprint on ssh?
1 Reply
hphillips
Linode Staff
✓ Best Answer
Host Keys are typically found in the /etc/ssh/
directory.
You can safely login via the LISH console to connect to your Linode through its console port.
You can run the following commands on your Linode to look at your server keys in various ways:
cd /etc/ssh
# List the SHA-256 fingerprint (used by OpenSSH 6.8 or newer)
for pubkey in /etc/ssh/ssh_host_*_key.pub
do
ssh-keygen -l -f "$pubkey"
done
# List the MD5 fingerprints
for pubkey in /etc/ssh/ssh_host_*_key.pub
do
ssh-keygen -l -f -E md5 "$pubkey"
done
# Show the ASCI Art of your server private keys
for pubkey in /etc/ssh/ssh_host_*_key.pub
do
ssh-keygen -l -f -v "$pubkey"
done