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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=tddlUr5nMI+MLG3anuYZosZtwkuAePS1G0Y8Vov9amR ylnce1T9v4YUNr3RPOP5LbxXCBqxBx20zujM/pxzQOQzPo8PigsACHUn2hb4VvIB JiKAl/Plt9vKY2gLwTprTsjiNSB7+DqpUdR2a9ZYZrRK6kryjRDZ+dd/YmK1U35s = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=6IJ5vERHwCZs03WWawgp6ydtraQ=; b=qzXQ5Ji9SoW2P5yDm wMZDWXuBIkPE4CUwJ2EO8wyQns8gkbMokz52xuyXRspHvpOV8MauTTVwp/MFSJI6 vK7LDOedqvYq4Rf/NAMqI9IqVnxPm4SJbC9gwH4uKKi1U6ZDcvQyM4q4w+SztYbz Znz12jxFb1auaD2lXj/iuHzAD0= 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=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f43.google.com X-Received: by 10.152.43.47 with SMTP id t15mr477501lal.38.1391335466381; Sun, 02 Feb 2014 02:04:26 -0800 (PST) Message-ID: <52EE1826.9040504@gmail.com> Date: Sun, 02 Feb 2014 11:04:22 +0100 From: "=?ISO-8859-1?Q?Ola_Str=F6mfors?=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: openssh-6.5p1-1 don't use address in /etc/hosts References: <52ECAC51 DOT 5020606 AT gmail DOT com> In-Reply-To: <52ECAC51.5020606@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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? With openssl 6.4 I got this ssh -vvvv centaur OpenSSH_6.4, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/olast/.ssh/config debug1: /home/olast/.ssh/config line 55: Applying options for centaur debug2: ssh_connect: needpriv 1 debug1: Connecting to centaur [192.168.0.254] port 22. debug1: Allocated local port 1023. debug1: Connection established. ... With openssl 6.5 I got this ssh -vvvv centaur OpenSSH_6.5, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/olast/.ssh/config debug1: /home/olast/.ssh/config line 55: Applying options for centaur debug2: ssh_connect: needpriv 1 debug1: Connecting to centaur [192.168.0.254] port 22. getaddrinfo: (null): Name or service not known ssh: connect to host centaur port 22: No such file or directory 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 ssh -vvvv centaur OpenSSH_6.5, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/olast/.ssh/config debug1: /home/olast/.ssh/config line 55: Applying options for centaur debug2: ssh_connect: needpriv 0 debug1: Connecting to centaur [192.168.0.254] port 22. debug1: Connection established. ... /Ola -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple