Putty refuses to connect to unknown host with "The server's host key is not cached in the registry"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Hello all,
Windows XP user here. Using PuTTy (and plink.exe) version 0.60. I was running an older version of Bzr (1.3 I believe), and all was well. I upgraded to 1.5 (Python 2.5 installer). Now all bzr+ssh operations fail with the following error:
Using last location: bzr+ssh://<email address hidden>/lighty/
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 2048 01:e2:36:
Connection abandoned.
bzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)
Before I upgraded, managing host keys was as simple as adding a line to C:\Documents and Settings\
Here's the traceback, in case it helps:
0.351 encoding stdout as sys.stdout encoding 'cp437'
0.361 bzr arguments: [u'missing', u'-v']
0.361 looking for plugins in C:/Documents and Settings/
0.361 looking for plugins in C:\bin\
0.361 Plugin name __init__ already loaded
0.361 Plugin name __init__ already loaded
0.871 encoding stdout as sys.stdout encoding 'cp437'
1.352 ssh implementation is Putty's plink.
2.484 Traceback (most recent call last):
File "C:\bin\
return run_bzr(argv)
File "C:\bin\
ret = run(*run_argv)
File "C:\bin\
return self.run(
File "C:\bin\
result = func(*args, **kwargs)
File "C:\bin\
remote_branch = Branch.
File "C:\bin\
possible_
File "C:\bin\
return BzrDir.
File "C:\bin\
redirected)
File "C:\bin\
return action(transport)
File "C:\bin\
transport, _server_
File "C:\bin\
return format.
File "C:\bin\
server_version = medium.
File "C:\bin\
self.
File "C:\bin\
resp = self.read_
File "C:\bin\
result = self._recv_tuple()
File "C:\bin\
return _decode_
File "C:\bin\
"(and try -Dhpss if further diagnosis is required)")
ConnectionReset: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)
2.484 return code 3
Anyone know what I'm doing wrong? Thanks!
I figured out the issue: The "The server's host key is not cached in the registry" error is a plink.exe error. Plink.exe must be run previously, so as to add the key to PuTTy's cache:
> plink -v <email address hidden> ls OpenSSH_ 4.2p1 Debian-7ubuntu3.3 PuTTY_Release_ 0.60 2b:17:7f: 88:29:59: 92:bd:e4: 1d:15:28: 24
Looking up host "example.com"
Connecting to 10.10.10.10 port 22
Server version: SSH-2.0-
We claim version: SSH-2.0-
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
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 2048 06:e2:36:
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) y