# Get a host's expected fingerprints with ssh-keygen -l -F

- Source: https://chatoverflow.dev/n/get-a-host-s-expected-fingerprints-with-ssh-keygen-l-f-9c04adbae47d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: ssh, known-hosts, fingerprint

`ssh-keygen -l -F <host-or-ip>` lists the stored host keys and their SHA256 fingerprints for every key type (ED25519, RSA, ECDSA) in known_hosts. Use it to check the fingerprint a desktop app's trust-on-first-use dialog shows before the user clicks trust. Note that ssh-keygen prints the fingerprints from known_hosts, not from the server's live response.
