X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=QiFZoxrTuS66LN5GGr4xn9zM1dFJZ84uGws0bAUrSSaBg3m4DXSXL p0HYBbPd4dDwAnbpjG3ZdzhCCG9r8LbogF9tz945cfragCM55DdtkmKXMtR+/lcZ 0w9YrxJIamQAalXN32PgIWqVsvuDdxAjJFHp45xqY3QJSb46UlpipU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=5FXkauJlLpsAPmA1Y8L1olLczPk=; b=qj5C9GohpbtAUNgD3osnPqz+sL3H +w4O9BTO/DwNW5Id+ab4HH3s7+97A5SjJDqGO9Bwnl+MYOqsItR3g85lnBVo7l4b 63JtILOTZf1E1G03kr2OsYHz33GqDbzc74h7kOUutnIrURLBR7NQbkvAS9ImjdA8 Cxg4DZ0mQOASyf0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 3 Feb 2014 11:18:07 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: openssh-6.5p1-1 don't use address in /etc/hosts Message-ID: <20140203101807.GP2821@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <52ECAC51 DOT 5020606 AT gmail DOT com> <52EE1826 DOT 9040504 AT gmail DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l5oECiFRo5dp+2y7" Content-Disposition: inline In-Reply-To: <52EE1826.9040504@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) --l5oECiFRo5dp+2y7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 2 11:04, Ola Str=C3=B6mfors wrote: >=20 > On Feb 1 13:54 Corinna Vinschen wrote > >On Feb 1 09:12, Ola Stromfors wrote: > >>Hi, > >> > >>After upgrading openssh from 6.4p1-1 to 6.5p1-1, ssh to host names > >>listed in /etc/hosts fails. /etc/hosts is actually a symlink to > >>/cygdriv/c/Windows/system32/drivers/etc/hosts. > > > >Not sure that's the actual reason. getaddrinfo is a WinSock call > >which, probably, never ignores its hosts file. > > > >>% ssh centaur > >>getaddrinfo: (null): Name or service not known > >>ssh: connect to host centaur port 22: No such file or directory > > > >(null) is the replacement string when printf'ing a NULL pointer as > >string. So it seems ssh called getaddrinfo with a NULL pointer for > >node and service. > > > >Can you call `ssh -vvv centaur' and see if the debug output gives > >some clue as to what happens? > [...] > I then started to comment out different lines in my .ssh/config file. > The line that caused the problem was >=20 > UsePrivilegedPort yes >=20 > After removing that lines I got this > [success] Thanks for tracking this down. I debugged this on the source level and it turned out that this is the result of an old Cygwin-related patch combined with a new generic patch in OpenSSH 6.5. On non-Cygwin systems, an "UsePrivilegedPort yes" is ignored if the uid of the caller is not 0 (=3D=3D root). On Cygwin "UsePrivilegedPort yes" is not ignored. The new generic patch is this: * ssh(1): bz#1211: make BindAddress work with UsePrivilegedPort. This leads to a call to getaddrinfo with hostname and service parameter set to NULL, if UsePrivilegedPort is set. The same occurs on non-Cygwin systems if the user is root. I'll report this as a bug upstream. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --l5oECiFRo5dp+2y7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS72zfAAoJEPU2Bp2uRE+gcYUP/19v7111opEadKn+IXVaalKg 5KRHBOtqHcIAzpHHposipGC10K4deN16VvyCNVwYAqWsYs4VGITNy1t0i9YxEBct vI+9960MA+0jVqGn0qjKfv/B9/uTsUluynUehLTxu+LTk6YPDFkz6z9lmS/OC6RR Aee7PMZ189GDpuFsBtC5JtBANHN5189z0RO5Wv/qeaJ0y5ZR67rYtUQHEJNi72Ag fkejTZTrqgucNXS+BJPVMrNagnZ5BvKEcc+92RjciocxAZMaRQWkarkKthDyCp0s InI6lLRttqDAlfYvJiqzlVXNaF81a4m/FOE29Jsnp0BIQFHpKbTZZJuwssJKnVuK jHEXmwT4LWfVZRMCVz6+xjdaw+ZeU2poM3/oz7vK3ZGrQAFtaqKpHphwmHd6OXHa Lz6CoJwHosq84ICu2wmhcfURBdJ6S6fWbF3QexxV5OboJC1Qmlhf4wJz9FWhD1CJ Fu4nlcT/OSxqaIGwXiqFlvKr6pcmqY9/et4dvGDju2NRWhlFNZLH4OYRDVZCwQ24 dP8g8/mGJNELtApy2jDC52qzkOeyFBxtnMIHHysWxvYzBhg7xfQWxbOljN4eqQKQ JKjVyrXiDf4vDDBcsjOHBvnP/GnSIjRhKaz5lxNbPEk0el0vlozAuZKmLV/l4FWu 5w/77+F6+sdKhggUXNvD =JJYz -----END PGP SIGNATURE----- --l5oECiFRo5dp+2y7--