delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/28/10:49:13

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: "Mag. M. Faffelberger" <m DOT faffelberger AT crp DOT at>
To: "Corinna Vinschen" <cygwin AT cygwin DOT com>
Subject: AW: tcpforwarding under NT
Date: Wed, 28 Feb 2001 16:43:25 +0100
Message-ID: <NDBBIMEOKDGHHCOJEGCMIEKHCMAA.m.faffelberger@crp.at>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-To: <20010228135657.J8464@cygbert.vinschen.de>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

hi,

unfortunately this doesn't work neither. maybe i describe the situation more
exactly:

- on the server the sshd runs
- another machine has to establish a connection
- when connecting, it shall open a tunnel on a port (e.g. 10000)
- on that port i have to establlich a tcp-forwarding connection
- over that port, an application on the server has to exchange information
with the client

in the ssh-manual this feature is described with the option -R:
...
     -R  port:host:hostport
             Specifies that the given port on the remote (server) host is to
             be forwarded to the given host and port on the local side.
This
             works by allocating a socket to listen to port on the remote
             side, and whenever a connection is made to this port, the
connec-
             tion is forwarded over the secure channel, and a connection is
             made to host port hostport from the local machine.  Port
forward-
             ings can also be specified in the configuration file.
Privileged
             ports can be forwarded only when logging in as root on the
remote
             machine.
...

so i tried "ssh -f -n -R 10000:host:port user AT host"./sleep 3600" ", for
establishing a connection for 3600 seconds.

what else do i have to configure ind the sshd_config or ssh_config.

any help would be very kind, cause i don't know what to do else.

matthias


-----Ursprungliche Nachricht-----
Von: cygwin-owner AT sources DOT redhat DOT com
[mailto:cygwin-owner AT sources DOT redhat DOT com]Im Auftrag von Corinna Vinschen
Gesendet: Mittwoch, 28. Februar 2001 13:57
An: cygwin AT cygwin DOT com
Betreff: Re: tcpforwarding under NT


On Wed, Feb 28, 2001 at 12:22:06PM +0100, Mag. M. Faffelberger wrote:
> then i tried:
> ssh -f -n -R 10000:host:port user AT host"./sleep 3600"
>
> but there was no port 10000 opened on my system.

AFAICS you want to use -L.

  ssh -L 10000:host:port user AT host...

Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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