Monthly Archives: October 2011

Siri, in a year.

Advertisements

[plink] The server’s host key is not cached in the registry

I was trying to open a SSH tunnel through a .bat file launching Plink, when I got the following error:
The server’s host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server’s rsa2 key fingerprint is:
ssh-rsa 1024 xxxxxxxxxxxxxxxxxxxxxxxxxxx
If you trust this host, enter “y” to add the key to
PuTTY’s cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter “n”.
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n)
I tried to press Y, N, y, n, Return: no key seemed to respond.

Solution: Download Putty, open a normal SSH connection on the server, accept to store the new key in the cache, and Plink will be thrilled to use it next time you launch your BATCH..
%d bloggers like this: