delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/25/17:24:05

Message-Id: <200110252124.f9PLO1P08779@delorie.com>
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Mark Paulus" <commpg AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>,
"Terry Roe" <terry DOT roe AT labbook DOT com>
Date: Thu, 25 Oct 2001 15:21:19 -0600
Reply-To: "Mark Paulus" <commpg AT yahoo DOT com>
X-Mailer: PMMail 2000 Professional (2.20.2380) For Windows 2000 (5.0.2195;2)
In-Reply-To: <3FC07C3DD75AD94BB5B9C52ABD033763047238@ohemail01.columbus.labbook.com>
MIME-Version: 1.0
Subject: Re: ssh tcp forwarding

One thing on the port forwarding.  You really should make the 
host between the two ports be 'localhost'.  Otherwise, if you have
firewalls inbetween, this will never work (BTW, vnc works fine 
over ssh, but I think you will get confused if you have a VNC server
running on the same machine you are trying to run the client on,
as both the server, and the ssh port forwarding will be listening
on port 5900.  I use the following line to get away from this:
-L 5904:localhost:5932 home
Then I always fire up my VNC session @ home on server :32
and I do a connect via localhost:4

HTH....



On Thu, 25 Oct 2001 17:11:47 -0400, Terry Roe wrote:

>I can't get ssh tcp forwarding to 
>work to my cygwin sshd.
>
>I can ssh to my cygwin sshd and get
>a bash.
>
>I can use cygwin ssh to tcp forward
>to a RedHat sshd, so I have the
>correct commands.
>
>When I run the following command from
>my RedHat system
>
>ssh -v -v -v -L 5900:myWindowsHost:5900 myWindowsHost
>
>I see
>
>debug2: tty_make_modes: 93 0
>debug1: Connections to local port 5900 forwarded to remote address
>host:5900
>socket: Address family not supported by protocol
>debug1: Local forwarding listening on 127.0.0.1 port 5900.
>debug1: fd 4 setting O_NONBLOCK
>debug1: fd 4 IS O_NONBLOCK
>debug1: channel 0: new [port listener]
>debug1: Requesting shell.
>debug1: Entering interactive session.
>
>Is the socket error my problem?  Am I configured
>correctly?  Do I have any options?
>
>Best Regards,
>Terry
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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