Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2001 15:42:29 +0200
From:      Marc Fonvieille <fonvi@easynet.fr>
To:        Dan Langille <dan@langille.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: remote cvs access
Message-ID:  <20010629154229.A744@vobiscum.styx.org>
In-Reply-To: <200106282318.f5SNIN852116@lists.unixathome.org>; from dan@langille.org on Thu, Jun 28, 2001 at 07:18:21PM -0400
References:  <200106281803.f5SI3q849045@lists.unixathome.org> <20010628205103.A8441@vobiscum.styx.org> <200106282318.f5SNIN852116@lists.unixathome.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 28, 2001 at 07:18:21PM -0400, Dan Langille wrote:
> Here's what finally worked for me:
> 
>    ssh -2 -N -f -L 2401:cvs.example.org:2401 localhost
> 
> where cvs.example.org is the hostname of the cvs server in question.
> 
[...]
> 
> The next thing that concerns me is the following output from tcpdump.  
> Hostnames have been changed:
> 
> 19:04:52.140672 host.example.org.1156 > cvs.example.org.cvspserver: . ack 
> 660 win 17520 (DF)
> 19:04:52.140907 cvs.example.org.cvspserver > host.example.org.1156: P 
> 660:697(37) ack 1346 win 17520 (DF)
> 
> Why am I seeing traffic on port 2401?
> 
> Given what I've read in man ssh, I'm hoping that this traffic across the wire 
> isn't actually on port 2401 and is encapsulated within the ssh connection:
> 
>      -L port:host:hostport
>              Specifies that the given port on the local (client) host is to be
>              forwarded to the given host and port on the remote side.  This
>              works by allocating a socket to listen to port on the local side,
>              and whenever a connection is made to this port, the connection is
>              forwarded over the secure channel, and a connection is made to
>              host port hostport from the remote machine.
>

Well, for me your ssh command is weird:

ssh -2 -N -f -L 2401:cvs.example.org:2401 localhost

this line create a secure channel from localhost to localhost and the
forwarding is made over this tunnel: it's what i understand...

Try ssh -2 -N -f -L 2401:cvs.example.org:2401 cvs.example.org
(i guess you own a ssh acces on that box).

Marc

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




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