delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/20/03:36:28

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=drBSTdRqTdQeGV9ZwmVvlZkFfgyoLAIPNLvVh4/eQCfJsG19P8813
u6elL4se5MtXEDpdokX59+rhoutmmsUpfJW5UjmHDCElImfFW3KFJzbl4bUFSAQS
1V0NKpaOjpVZ3fvEGPaDDRa88hcaNDZqMxKCfi6h35eYdT4CVtWiFU=
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=tWbgGMUcnYk1a0uy6jQwQfpByK4=; b=bpIH4uMtst0EyGJX2+L1FfZloR2p
BhjK9xt5z510zFdX0r4ewte8DeC/l5qAxHkyzhTJHDTUpNP1cE2Nv6Q+0c1LTmrq
nuwmxPgwYRHpssVbIq8/pPmGozRqnyNth8dy9zYP4Q7h++P18Cbucf683fxWFOSN
bLbJMyFnX+yCiOs=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 20 Feb 2014 09:36:04 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: OpenSSH port forwarding bug
Message-ID: <20140220083604.GC2246@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BLU173-W3896EF675E0B97DFB4B04DB59D0 AT phx DOT gbl> <8tfof9t4krrjbrj9rk14umcjbh05h2msko AT 4ax DOT com> <BLU173-W34071B5D95ADF6D2547C49B59C0 AT phx DOT gbl> <BLU173-W51D2527ADA38BFF2E88A7FB59F0 AT phx DOT gbl> <BLU173-W9BF40E0ADBC0026E29769B59A0 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <BLU173-W9BF40E0ADBC0026E29769B59A0@phx.gbl>
User-Agent: Mutt/1.5.21 (2010-09-15)

--qTa+0zXUvx+FOrJg
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 19 17:18, Karl M wrote:
> >>> Subject: Re: OpenSSH port forwarding bug
> >>> Date: Wed, 12 Feb 2014 22:44:54 -0500
> >>>
> >>>> Hi All...
> >>>> The following example shows the port forwarding problem.
> >>>>
> >>>>
> >>>> ~
> >>>>
> >>>> $ ssh raven -W coyote:22
> >>>> getsockname failed: Bad file descriptor
> >>>> SSH-2.0-OpenSSH_6.5
> >>>> Protocol mismatch.
> >>>> ~
> >>>>
> >>>> $ ssh raven nc coyote 22
> >>>> SSH-2.0-OpenSSH_6.5
> >>>> Protocol mismatch.
> >>>
> >>> What are you trying to do?
> >>>
> >>>
> >>> --
> > --
> Hi All...
>=20
> So I solved my real problem. It was a typo in my .ssh/config file that pr=
evented me from being able to use the proxy command in ssh. I've used it fo=
r years.
>=20
> But there is still a minor bug in ssh, When I use a proxycommand with ssh=
 with the -W option, to avoid using an external program such as netcat (nc)=
 the error message "getsockname failed: Bad file descriptor" is displayed. =
The proxycommand works, but displays this error message. Using netcat does =
not display this error message.
>=20
> The example above is a STC showing the error in a more easily visible way=
. The names raven and coyote are local names on my network at home.
>=20
> I am wishing the error message into the cornfield.

Cygwin's getsockname is called with a file descriptor -1.  I tried
it on Linux and it occurs with the 6.5p1 version as well so it's a=20
generic problem, still present upstream.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--qTa+0zXUvx+FOrJg
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTBb50AAoJEPU2Bp2uRE+gILIP/06IdkDNqjkQhjZOFZ167S89
PVPzbz6vLQv3wO//sfvdyRkBmDYkDV2/VOEiFlvj/RHa5EyOEPGRBSpj0XMzeZwQ
+aenhFZkW+4Ke6DaE1CnMKnSo2a4FnyvV0fIlgi9ZMkjBjNPPMwgV8RJKX7Ev3Ow
2P1yMFOz65nuu/KO1gUdgTluEedJLHF6JroF4JP2i75KwSkUg6E27qRT7/jkodGG
IuoSHneHTL/sR+MiqejidF4BMpgD3NQZnzc7srepQTg9d2Jl1Hxu35m3vThRyotz
gonfdYMqU89g150bbaWj2cICBZkO88YXKDuXFsNYp+j6v+UDuxtY9FSWGhUmIgw3
+vvRanbxjFNgb4IAieBP2Qx7LQSBpoW8A3btELHDgM9za1uSingiSdk46Ls5iwQ6
0yxL4Hqk7gcpl3+6YGc94329YWwFCrBEUPSgGyJKnr3+XWN7x3vFQEaiMR60AdaR
SlBTl8IjejXBlF6zlNhiR3vHmpTeJ+ZwZrOqAi2FKeFDCrrR28DHiwPGkV64eQGN
wSlmRDmgIuUapbJ9SFRC85qUROTCsIJBuxXTXKWQ6tjUzb8eAlhDH27yaorCknsr
BrwCsfm+bowEROcjbYAr8gHCbO84cQ7YDnBf8e4q6DBD47+NFxDaOmiUe+9GhgHF
ZsjRrCKzSiWCCMwy/10b
=7WHN
-----END PGP SIGNATURE-----

--qTa+0zXUvx+FOrJg--

- Raw text -


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