when executing this command
I get the following error:
****Host key for the host "hostname1" not found from database**** The fingerprint of the host public key is: "xxx-xxx-xxxx" You can get a public key's fingerprint by running % ssh-keygen-g3 -F publickey.pub on the key file. Please select how you want to proceed. cancel) Cancel the connection. once) Proceed with the connection but do not save the key. save) Proceed with the connection and save the key for future use. Please select one (cancel, once, save): save
How can I fix this "host key not found from database" error?
This normally happens when you take a connection to a host for the first time. The host provides its identification, a host public key, and this dialog shows you the fingerprint of the key.
When you see this dialog you should verify the validity of the fingerprint, for example by contacting the administrator of the remote host computer and asking her to verify that the key's fingerprint is correct. If the fingerprint is not verified, it is possible, although unlikely, that the server you are connecting to is not the intended one (this is known as a man-in-the-middle attack).
After you have verified the fingerprint, type "save" to save the host public key. For subsequent connections, the host key is verified using the key saved on disk and you won't see this dialog anymore.
Because the attack scenario is unlikely, most people choose to blindly answer "save" to this prompt. The solution is to obviate the need for the host key dialog altogether:
answered Dec 28 '09 at 19:11
Ville Laurikari ♦