Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 08:11:36 +0200
From:      Mark Murray <mark@grondar.za>
To:        Harold Gutch <logix@foobar.franken.de>
Cc:        "James C. Durham" <durham@w2xo.pgh.pa.us>, freebsd-security@FreeBSD.ORG
Subject:   Re: ssh2 tunneling through firewall 
Message-ID:  <199907280611.IAA28855@gratis.grondar.za>

index | next in thread | raw e-mail

> On Mon, Jul 26, 1999 at 12:53:58AM -0400, James C. Durham wrote:
> > I'd like to be able to use ssh2 to tunnel IP connections
> > on the remote server to ports on one of the local machines.
> > 
> > I elected to try forwarding telnet requests (port 23)
> > for simplicity.
> > 
> > sshd2 is running on the local machine and the remote machine.
> > I'm using ssh2 -R 23:localhost:23 my.server.xx.xx
>                     ^^
> I don't use ssh2, but assuming that the syntax is the same as in
> ssh1, you're trying to bind to port 23, which won't work unless
> you're root. Does binding to a port higher than 1024 work ?

You really want to forward a local port to the remote:

# ssh -L 23:remote.host.org:23 remote.host.org

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907280611.IAA28855>