Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2018 22:30:28 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Grzegorz Junka <list1@gjunka.com>
Cc:        Chad Jacob Milios <freebsd-list@nuos.org>, freebsd-security@freebsd.org, Damien Miller <djm@mindrot.org>
Subject:   Re: Possible break-in attempt?
Message-ID:  <1EBE0612-CDB0-452D-ABB0-BFF133B1CBE0@FreeBSD.org>
In-Reply-To: <91123dcd-529a-1c92-16bf-f9060d3f1fa6@gjunka.com>
References:  <594ba84b-0691-8471-4bd4-076d0ae3da98@gjunka.com> <368EABCF-A10A-49E9-9473-7753F6BEAA50@patpro.net> <fd0ab13d-0dda-fa5d-a867-533720d9f47f@gjunka.com> <8EDDBDB2-77F5-4CF5-8744-41BEA187C08A@FreeBSD.org> <201807201905.w6KJ59hn079229@donotpassgo.dyslexicfish.net> <2E502F45-E6F6-44D7-AE9E-9B8B08C1CEBE@nuos.org> <d5f56af2-bd11-60d2-ba8d-06ed50872ef9@gjunka.com> <0DDFA4FB-4FAB-49F0-99E8-9958DB1D889F@nuos.org> <91123dcd-529a-1c92-16bf-f9060d3f1fa6@gjunka.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_9BB5C12B-EDAA-42E1-BA92-1CC0ED28FFD8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On 21 Jul 2018, at 21:29, Grzegorz Junka <list1@gjunka.com> wrote:
>=20
> On 21/07/2018 12:05, Chad Jacob Milios wrote:
>>> On Jul 21, 2018, at 7:57 AM, Grzegorz Junka <list1@gjunka.com> =
wrote:
>>> On 21/07/2018 11:03, Chad Jacob Milios wrote:
>>>>> On Jul 20, 2018, at 3:05 PM, Jamie Landeg-Jones =
<jamie@catflap.org> wrote:
...
>>>> openssh-portable (in ports, produced by the paranoid fellows at =
OpenBSD) has actually switched to adopt this, UseDNS no, as their =
default configuration for, i think its been a couple years now. This is =
in addition to dropping the message from their log output if UseDNS yes.
>>>>=20
>>>> There is no point to this foolishly alarming message. Be mindful of =
the OTHER ways you must surely have in place to keep your sshd hard =
against attack.
>>>>=20
>>> Good to know. But the documentation says setting to no prevents from =
using DNS in known_hosts. When I look into my known_hosts I see many =
dns-only names, e.g. github.com among others.
>>>=20
>>> GrzegorzJ
>> In which man page or web page are you seeing this information?
>=20
> > man sshd_config
>=20
>      UseDNS  Specifies whether sshd(8) should look up the remote host =
name,
>              and to check that the resolved host name for the remote =
IP
>              address maps back to the very same IP address.
>=20
>              If this option is set to =E2=80=9Cno=E2=80=9D, then only =
addresses and not host
>              names may be used in ~/.ssh/known_hosts from and =
sshd_config
>              Match Host directives.  The default is =E2=80=9Cyes=E2=80=9D=
.

Interestingly, this documentation is an outdated version, and wrong. :)
It was reported upstream:

https://bugzilla.mindrot.org/show_bug.cgi?id=3D2554

and fixed here:

=
https://github.com/openssh/openssh-portable/commit/0235a5fa67fcac51adb564c=
ba69011a535f86f6b

The documentation is now:

     UseDNS  Specifies whether sshd(8) should look up the remote host =
name,
             and to check that the resolved host name for the remote IP
             address maps back to the very same IP address.

             If this option is set to no, then only addresses and not =
host
             names may be used in ~/.ssh/authorized_keys from and =
sshd_config
             Match Host directives.  The default is "yes".

E.g., it affects only authorized_keys files, but I'm not sure if there
is such a thing as a "from" directive in those (and neither could I find
any documentation about "from" directives in known_hosts files either).

-Dimitry


--Apple-Mail=_9BB5C12B-EDAA-42E1-BA92-1CC0ED28FFD8
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW1OX5AAKCRCwXqMKLiCW
o3S0AKDEIfVmqFWMLOZv20e+X5c0zFH44gCg480TyUT4EWBcFbRayzSvJfzOKM0=
=m7bj
-----END PGP SIGNATURE-----

--Apple-Mail=_9BB5C12B-EDAA-42E1-BA92-1CC0ED28FFD8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1EBE0612-CDB0-452D-ABB0-BFF133B1CBE0>