delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 13 Feb 2012 14:53:13 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Can not make port forwarding from Cygwin when ControlMaster/ControlPath used. |
Message-ID: | <20120213135313.GB32512@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <84r4xzw0q8 DOT fsf AT bifit DOT com DOT ua> |
MIME-Version: | 1.0 |
In-Reply-To: | <84r4xzw0q8.fsf@bifit.com.ua> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Feb 13 11:18, Oleksandr Gavenko wrote: > > I can forward port from Cygwin to Debian: > > cygwin# nc -l -p 6000 > > debian1# ssh -L 7000:cygwin.host:6000 user AT cygwin DOT host > > debian2# telnet localhost 7000 > > But if do same in inverse direction I got: > > debian# nc -l -p 6000 > > cygwin1# ssh -L 8000:debian.host:6000 user AT debian DOT host > > bind: Address already in use > channel_setup_fwd_listener: cannot listen to port: 8000 > Could not request local forwarding. > > I don't understand what this mean... > > netstat under Cygwin is Windows utility: > > debian# netstat -l -n | grep 6000 > tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN > > cygwin2# netstat -n -a -n > > TCP 127.0.0.1:8000 0.0.0.0:0 LISTENING 2308 > [ssh.exe] > > Note that ssh.exe is not "ssh -L" but that I run to connect to debian.host for > "nc -l -p 6000". > > To resolve issue I comment this line in ~/.ssh/config: > > # ControlPath ~/.ssh/sock_%r@%h_%p > # ControlMaster auto Works for me with or without these lines. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |