Welcome to mirrors.uni-ruse.bg, a free service hosted by the University of Ruse

PuTTY wish cmdline-hostkey

PuTTY wish cmdline-hostkey

This is a mirror. Follow this link to find the primary PuTTY web site.

Home | FAQ | Feedback | Licence | Updates | Mirrors | Keys | Links | Team
Download: Stable · Snapshot | Docs | Changes | Wishlist

summary: Option to specify expected host key(s) on the command line
class: wish: This is a request for an enhancement.
difficulty: fun: Just needs tuits, and not many of them.
priority: medium: This should be fixed one day.
fixed-in: r10220 70ab076d839072357dab75590287d44961302de8 (0.64)

When people want to run PuTTY tools in a batch-mode context, and find the host key verification to be inconvenient, we've always told them to add the right host key to the registry ahead of time, rather than asking us for an option to accept any old key or bodging a similar thing using expect-type tools.

However, in some contexts this actually can't be done, because the Windows registry isn't accessible in the environment where PuTTY needs to run. So it would be useful to be able to specify the expected host key in a different way, e.g. with a command-line option.

Another use for the same facility is in the case where a round-robin DNS name points at multiple servers with different host keys, and the user wants to connect to the round-robin name and accept any of the host keys that might come back. We've generally advised people in this situation to try to arrange for all the servers to have the same host key (on the basis that if the servers are so interchangeable that it doesn't matter which one you connect to, then they must be in the same trust domain anyway and so there's no security risk introduced by each of them being able to spoof the others' SSH connections), but of course not every user is also the sysadmin of their servers, so some people will have to live with different host keys. Those users will also find PuTTY's standard host key policy to be unhelpful, and would probably find it more useful to be able to specify a list of host keys to be accepted.

2014-09-09: now implemented both a -hostkey command line option and a matching GUI configuration mechanism. You can enter either an SSH key fingerprint or an SSH-2 base64-encoded blob. If enabled, this option completely replaces the automated host key management – the registry host key store will be neither consulted nor updated.


If you want to comment on this web site, see the Feedback page.
Audit trail for this wish.
(last revision of this bug record was at 2017-04-28 16:52:45 +0100)

Contact us:mirrors@uni-ruse.bg

Developed and supported by the Centre for Information and Computing Technologies

ipv6 ready