If you want to change the hostname for an _existing hashed host_ , edit your `known_hosts` file, replacing the hashed hostname with the plaintext hostname you wish associated with that key, and rehash the file:
ssh-keygen -H
* * *
If you want to generate hashes for a list of hostnames without disturbing your `known_hosts`, create a file combining the hostnames you wish to hash with a valid key copied out of an existing `known_hosts` :
sample.bar.com ecdsa-sha2-nistp256 AAAAE2...
other.bar.com ecdsa-sha2-nistp256 AAAAE2...
diff.domain.org ecdsa-sha2-nistp256 AAAAE2...
Then hash this file using `ssh-keygen` :
ssh-keygen -f mytestfile -H