On Feb 2 11:04, Ola Strömfors wrote: > > 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 > > UsePrivilegedPort yes > > 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 (== 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 -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
pgpc4y7oeNzwj.pgp
Description: PGP signature