www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/22/10:44:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: luciop <lucio_piccoli AT hotmail DOT com>
Subject: Re: ssh client disconnect error
Date: Tue, 22 Jul 2008 14:43:48 +0000 (UTC)
Lines: 47
Message-ID: <loom.20080722T143600-471@post.gmane.org>
References: <loom DOT 20080720T174224-182 AT post DOT gmane DOT org> <loom DOT 20080721T103922-629 AT post DOT gmane DOT org> <20080721135103 DOT GC5251 AT calimero DOT vinschen DOT de> <loom DOT 20080721T143613-890 AT post DOT gmane DOT org> <20080722094254 DOT GE5251 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> nslookup <numerical address>
> 
> > $less /etc/hosts
> > 127.0.0.1       localhost
> > 
> > $ nslookup localhost
> > Non-authoritative answer:
> > Server:  UnKnown
> > Address:  192.168.1.1:53
> 
> As I said, a DNS problem which you really should fix or let fix by your
> local admin.  localhost should be resolved to 127.0.0.1 (IPv4) and/or
> ::1 (IPv6).  It's resolved to 192.168.1.1 plus a port number 53 which is
> very wrong.  sshd will make a reverse lookup for 192.168.1.1, get a
> machine name different from localhost and complains correctly about a
> host name/address mismatch.


i think u have missed read the nslookup result.

$ nslookup localhost
Non-authoritative answer:
Server:  UnKnown
Address:  192.168.1.1:53

Name:    localhost
Address:  127.0.0.1

the 192.168.1.1:53 is my DHCP DNS/gateway.
it has correctly resolved localhost to 127.0.0.1

i managed to get it to work by modifying the hosts.allow by changing the
following line
from
ALL : PARANOID : deny
to
ALL : LOCAL : deny

removed the PARANOID checks for mismatched name to IP.

it doesnt solve why the sshd is getting the wrong ip for localhost.

any ideas most welcome

-lp


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019