X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=g2oB14UUPbWReFKbKgNk5UZ12JVLYL6fbnhFTUT4B8XCTD6a1LkBP
	j+h9OuLwdbYrfWmo9Xes4rAdIs2nXIquBjUrfBR+9fUfE0ohlcl7Bz597OWBReEO
	DcLoR/bq2UIeg8JDbod5hxcP2nuf/w/2zngZUpMtCXfdRO8mlkI1Ps=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=Vwywv5VhB0S6N87iw8i3HSirFk0=; b=U2hfudDJ6dKib+GRC+16HpQ4HvLz
	hSRzzqSV1/sH/PKXi+XXy/+x7A1zhiTdUSF5erh3g+pKkp62QFBI9m4Dg5PbrjSh
	cyq5PuOUo/eeYlIxukNKCY3oiJnjkToILW6tIJqS2716sdLQC91BczCFNcesjKUk
	yEM6qiVgXWolqQg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epamail.epa.gov>
Subject: Re: Troubleshooting AutoSSH
Date: Fri, 12 Jul 2013 13:34:41 -0400
Lines: 22
Message-ID: <f7f0u8hgn9uc1r03vf8lctj3v0io4b10l8@4ax.com>
References: <Pine.BSO.4.53.1307111701260.32610@Mail.omnitec.net> <tm1vt8pl995u8nvkpebtmbrc0tq3jjmggh@4ax.com> <Pine.BSO.4.53.1307121055000.32610@Mail.omnitec.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archive: encrypt

> debug1: Local connections to LOCALHOST:5661 forwarded to remote address
> 127.0.0.1:6661
> debug1: Local forwarding listening on ::1 port 5661.
> 				  ^^^^^^^^^
> 
> <connection attempt fails with "Connection closed by ::1">!!!!
> 
> It looks like the problem is that AutoSSH is binding to IPV6, *NOT*
> IPv4! sshd is set to "AddressFamily inet", .. so the problem appears to be
> that AutoSSH is not binding properly.
> 
> Don't see anything in the man pages or a quick search, .. how would one
> force AutoSSH to bind to IPv4? IPV6 is installed on this box, but not
> used.

Hi Lee.  Okay, that does seem to narrow it down.

You're right that autossh doesn't have any ipv4 options.  It hasn't been
updated in a few years, and I think it's just not ipv6-aware yet.

Does it help if you include the -4 switch to ssh, to force it to use ipv4
only?  It's worth a try.


--
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

