]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: make CheckHostIP default to 'no'. It doesn't provide any
authordjm@openbsd.org <djm@openbsd.org>
Fri, 8 Jan 2021 04:49:13 +0000 (04:49 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 8 Jan 2021 05:01:30 +0000 (16:01 +1100)
perceptible value and makes it much harder for hosts to change host keys,
particularly ones that use IP-based load-balancing.

ok dtucker@

OpenBSD-Commit-ID: 0db98413e82074f78c7d46784b1286d08aee78f0

readconf.c
ssh_config.5

index 2a7870a1d9df33fb85d0cc983b82e43bb332c999..37f92e25adbaf1a36e972a5a36f12b1c6d372a9f 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.347 2020/12/22 03:05:31 tb Exp $ */
+/* $OpenBSD: readconf.c,v 1.348 2021/01/08 04:49:13 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2297,7 +2297,7 @@ fill_default_options(Options * options)
        if (options->batch_mode == -1)
                options->batch_mode = 0;
        if (options->check_host_ip == -1)
-               options->check_host_ip = 1;
+               options->check_host_ip = 0;
        if (options->strict_host_key_checking == -1)
                options->strict_host_key_checking = SSH_STRICT_HOSTKEY_ASK;
        if (options->compression == -1)
index 04da0575fa628607fa2a069422e01453ab90583b..18a98a8f7aad887eed582b22bb18a72d82c0ccb1 100644 (file)
@@ -33,8 +33,8 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\" $OpenBSD: ssh_config.5,v 1.340 2020/12/22 07:40:26 jmc Exp $
-.Dd $Mdocdate: December 22 2020 $
+.\" $OpenBSD: ssh_config.5,v 1.341 2021/01/08 04:49:13 djm Exp $
+.Dd $Mdocdate: January 8 2021 $
 .Dt SSH_CONFIG 5
 .Os
 .Sh NAME
@@ -421,7 +421,6 @@ or
 .It Cm CheckHostIP
 If set to
 .Cm yes
-(the default),
 .Xr ssh 1
 will additionally check the host IP address in the
 .Pa known_hosts
@@ -432,7 +431,8 @@ and will add addresses of destination hosts to
 in the process, regardless of the setting of
 .Cm StrictHostKeyChecking .
 If the option is set to
-.Cm no ,
+.Cm no
+(the default),
 the check will not be executed.
 .It Cm Ciphers
 Specifies the ciphers allowed and their order of preference.