From owner-freebsd-questions Fri Jun 29 11: 4:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id D155437B401 for ; Fri, 29 Jun 2001 11:04:32 -0700 (PDT) (envelope-from dan@langille.org) Received: from localhost (localhost [127.0.0.1]) by lists.unixathome.org (8.11.1/8.11.1) with ESMTP id f5TI4L866143; Sat, 30 Jun 2001 06:04:22 +1200 (NZST) (envelope-from dan@langille.org) Date: Sat, 30 Jun 2001 06:04:21 +1200 (NZST) From: Dan Langille X-Sender: dan@lists.unixathome.org To: Marc Fonvieille Cc: freebsd-questions@FreeBSD.ORG Subject: Re: remote cvs access In-Reply-To: <20010629154229.A744@vobiscum.styx.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 29 Jun 2001, Marc Fonvieille wrote: > 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). BTW: I have been able to get an ssh tunnel going by using TerraTerm SSH. I ssh from my NT workstation to the remote box. The NT box is on the same LAN as the cvs server. I then redirect remote port 2401 to local port 2401 on the cvs server. Works fine. Given that I usually shh this way, I should be fine. But I would like to find an ssh solution (versus a TTSH solution). thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message