From owner-freebsd-questions Mon Nov 11 3:36:53 2002 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 C277E37B401 for ; Mon, 11 Nov 2002 03:36:51 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2886143E42 for ; Mon, 11 Nov 2002 03:36:51 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Mon, 11 Nov 2002 11:36:41 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 18BCpt-000082-00; Mon, 11 Nov 2002 11:34:33 +0000 Date: Mon, 11 Nov 2002 11:34:32 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Naydoe Maung Cc: Jacob Rhoden , freebsd-questions Subject: Re: [OT] Reverse ssh through firewall? In-Reply-To: <200211110327.17924.nyingelay@hotpop.com> 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 Mon, 11 Nov 2002, Naydoe Maung wrote: > On Sunday 10 November 2002 09:05 pm, Jacob Rhoden wrote: > > Hi Guys, > > > > If I have two machines (one at work, and one at home) and one of them has > > all ports firewalled (I can ssh from work to home, but not home to work). > > Is there a way to open ssh on the home machine and have my work computer > > connect to it (so that i have access to my work machine from home). > > > > Any ideas much appreciated... > > > > Thanks, > > Jacob > > > > Jacob Rhoden Phone: +61 3 8344 6102 > > ITS Division Email: jrhoden@unimelb.edu.au > > Melbourne University Mobile: +61 403 788 386 > > > > More detailed info on the issue will be much more helpful, but let's just work > on possible assumptions here. Not sure about Naydoe's answer; think this will work... From a machine in your office that runs sshd: ssh foo@your.home.machine -R 2022:localhost:22 and leave that connection open. Then at your home machine, you can ssh to localhost:2022 and the connection will be tunnelled to your work machine. Is that what you're after? jan PS. The "localhost" is resolved on the work machine relative to it. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Usenet: The separation of content AND presentation - simultaneously. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message