✓ Solved

how can i see host key’s fingerprint on ssh

how can i see host key’s fingerprint on ssh?

1 Reply

✓ 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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct