We have been using SSH all the time but not all people really
understand the files we put inside the ~/.ssh
folder
on our computer. It was a myth to me when I was first using SSH,
but things are pretty clear to me now and I want to share this
with all of you, just in case you don't know.
known_hosts
This file is responsible for verifying the host we have connected to. If it was the first time you connect to a host, you would probably see the following message:
The authenticity of host 'example.com (10.0.0.0)' can't be established.
RSA key fingerprint is SHA256:VqgUG8v+gxrigR1csELYv6Un6l7HxMgPgMj9wyUr7G4.
Are you sure you want to continue connecting (yes/no)?
The moment you select yes
to continue connecting,
the hostname along with the public key of the server will be
saved as a new line in this file. Why we need this file? Just
imagine that for some reason our routing has …