From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 10:24:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54F6537B401 for ; Sun, 8 Jun 2003 10:24:45 -0700 (PDT) Received: from out002.verizon.net (out002pub.verizon.net [206.46.170.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 813D343FDD for ; Sun, 8 Jun 2003 10:24:44 -0700 (PDT) (envelope-from mij@soupnazi.org) Received: from soupnazi.org ([4.47.68.94]) by out002.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030608172443.QIOT13328.out002.verizon.net@soupnazi.org>; Sun, 8 Jun 2003 12:24:43 -0500 Date: Sun, 8 Jun 2003 10:24:48 -0700 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: Josh Brooks From: Jim Mock In-Reply-To: <20030607213312.S81042-100000@mail.econolodgetulsa.com> Message-Id: <1B344A61-99D6-11D7-BA68-000393460DB2@soupnazi.org> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) X-Authentication-Info: Submitted using SMTP AUTH at out002.verizon.net from [4.47.68.94] at Sun, 8 Jun 2003 12:24:43 -0500 cc: freebsd-questions@freebsd.org Subject: Re: How do I set up a ssh tunnel between two FreeBSD systems ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 17:24:45 -0000 On Saturday, June 7, 2003, at 09:36 PM, Josh Brooks wrote: > Hello, Hi, > I have read the ssh man page and am not getting the results I think I > should. some background: > > serverA is the client > > serverB is running sendmail on port 25 > > I want to telnet to serverA on port 34 and get a response from the > sendmail daemon running on serverB. > > I tried this: > > ssh -L 34:serverB:25 user@serverB > > ^^^ seems to be what the man page instructs me to do ... > > But when I run that command, it asks me for a password, and I log into > serverB just like any other time I ssh there to log in. > > So that's that - the above command line does nothing but log me into > serverB. If I port scan serverA, nothing is running on port 34. So > basically it's a total bust. > > I am running this ssh command on serverA as root. > > So what am i doing wrong ? Take a look at http://soupnazi.org/freebsdzine/200104/tunnel.php for an article I wrote a few a years ago about this. - jim -- jim mock mij@{soupnazi|opendarwin}.org jim@{bsdnews|FreeBSD}.org http://soupnazi.org editor-in-chief, BSD News http://bsdnews.org