]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - misc.c
New option to manually configure the expected host key(s).
authorSimon Tatham <anakin@pobox.com>
Tue, 9 Sep 2014 11:46:24 +0000 (11:46 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 9 Sep 2014 11:46:24 +0000 (11:46 +0000)
commit70ab076d839072357dab75590287d44961302de8
treee8d4f745f9b9189ce1ee2d644f8848375a8d1271
parentf3860ec95ea6308ce58cd891dedac1dc8751686e
New option to manually configure the expected host key(s).

This option is available from the command line as '-hostkey', and is
also configurable through the GUI. When enabled, it completely
replaces all of the automated host key management: the server's host
key will be checked against the manually configured list, and the
connection will be allowed or disconnected on that basis, and the host
key store in the registry will not be either consulted or updated.

The main aim is to provide a means of automatically running Plink,
PSCP or PSFTP deep inside Windows services where HKEY_CURRENT_USER
isn't available to have stored the right host key in. But it also
permits you to specify a list of multiple host keys, which means a
second use case for the same mechanism will probably be round-robin
DNS names that select one of several servers with different host keys.

Host keys can be specified as the standard MD5 fingerprint or as an
SSH-2 base64 blob, and are canonicalised on input. (The base64 blob is
more unwieldy, especially with Windows command-line length limits, but
provides a means of specifying the _whole_ public key in case you
don't trust MD5. I haven't bothered to provide an analogous mechanism
for SSH-1, on the basis that anyone worrying about MD5 should have
stopped using SSH-1 already!)

[originally from svn r10220]
cmdline.c
config.c
doc/config.but
doc/faq.but
doc/using.but
misc.c
misc.h
putty.h
settings.c
ssh.c
windows/winhelp.h