Friday, 9 March 2018

Manually adding a host SSH fingerprint into known_hosts

I noticed that when connecting to a non-standard port for SSH e.g. that the SSH host fingerprint was not being added to the users known_hosts file. So in order to perform this manually we should issue:

ssh-keygen -p 2020 ssh-rsa AAAABBBBBBCCCCCC.....

and then append it to our known_hosts

echo AAAABBBBBBCCCCCC..... >> ~/.ssh/known_hosts


Post a Comment