diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-02-20 22:17:21 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-02-21 09:20:28 +1100 |
commit | 44732de06884238049f285f1455b2181baa7dc82 (patch) | |
tree | deb3c48176195cfc4028b55d2a1a71607e9f7fb0 /ssh.c | |
parent | 13a39414d25646f93e6d355521d832a03aaaffe2 (diff) |
upstream commit
UpdateHostKeys fixes:
I accidentally changed the format of the hostkeys@openssh.com messages
last week without changing the extension name, and this has been causing
connection failures for people who are running -current. First reported
by sthen@
s/hostkeys@openssh.com/hostkeys-00@openssh.com/
Change the name of the proof message too, and reorder it a little.
Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY
available to read the response) so disable UpdateHostKeys if it is in
ask mode and ControlPersist is active (and document this)
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.414 2015/01/20 23:14:00 deraadt Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.415 2015/02/20 22:17:21 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1072,6 +1072,12 @@ main(int ac, char **av) | |||
1072 | strcmp(options.proxy_command, "-") == 0 && | 1072 | strcmp(options.proxy_command, "-") == 0 && |
1073 | options.proxy_use_fdpass) | 1073 | options.proxy_use_fdpass) |
1074 | fatal("ProxyCommand=- and ProxyUseFDPass are incompatible"); | 1074 | fatal("ProxyCommand=- and ProxyUseFDPass are incompatible"); |
1075 | if (options.control_persist && | ||
1076 | options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) { | ||
1077 | debug("UpdateHostKeys=ask is incompatible with ControlPersist; " | ||
1078 | "disabling"); | ||
1079 | options.update_hostkeys = 0; | ||
1080 | } | ||
1075 | #ifndef HAVE_CYGWIN | 1081 | #ifndef HAVE_CYGWIN |
1076 | if (original_effective_uid != 0) | 1082 | if (original_effective_uid != 0) |
1077 | options.use_privileged_port = 0; | 1083 | options.use_privileged_port = 0; |