From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19340 invoked by alias); 20 Feb 2014 08:36:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19324 invoked by uid 89); 20 Feb 2014 08:36:07 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Feb 2014 08:36:07 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id B3CAC52041A; Thu, 20 Feb 2014 09:36:04 +0100 (CET) Date: Thu, 20 Feb 2014 08:50:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: OpenSSH port forwarding bug Message-ID: <20140220083604.GC2246@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <8tfof9t4krrjbrj9rk14umcjbh05h2msko@4ax.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qTa+0zXUvx+FOrJg" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-02/txt/msg00538.txt.bz2 --qTa+0zXUvx+FOrJg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1608 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 Content-length: 819 -----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--