8

When I sshed into a remote client, I got a warning :

Warning: Permanently added 'xx.xx.xx.xx' (ECDSA) to the list of known hosts.

Where can I see the list of known hosts?

I tried cat ~/.ssh/known_hosts, but this returns data in some hashed form. Does anybody know the solution?

2 Answers2

4

.ssh/known_hosts in your case doesn't store plaintext hostnames, but rather hashed values of hostnames. Therefore you can't just list host names from it.

As answered in by Cakemox the this question, you can set HashKnownHosts No in your ssh configuration so that SSH stores hostnames instead of hashes.

-1

You can easily do it by putting up this command

ssh-keygen -H -F (hostname) put in the name of the host.