From owner-freebsd-questions@FreeBSD.ORG Fri Oct 13 21:10:11 2006 Return-Path: X-Original-To: questions@freebsd.org 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 2C91116A415 for ; Fri, 13 Oct 2006 21:10:11 +0000 (UTC) (envelope-from a.n.s.i@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id C317043D83 for ; Fri, 13 Oct 2006 21:10:04 +0000 (GMT) (envelope-from a.n.s.i@gmx.net) Received: (qmail invoked by alias); 13 Oct 2006 21:10:02 -0000 Received: from p50872E17.dip0.t-ipconnect.de (EHLO gate.home.org) [80.135.46.23] by mail.gmx.net (mp023) with SMTP; 13 Oct 2006 23:10:02 +0200 X-Authenticated: #30170983 Received: from tit007m.home.org (tit007m.home.org [192.168.0.5]) by gate.home.org (8.13.8/8.13.8) with ESMTP id k9DLA1R1002338 for ; Fri, 13 Oct 2006 23:10:02 +0200 (CEST) (envelope-from ansi@tit007m.home.org) Received: from tit007m.home.org (localhost [127.0.0.1]) by tit007m.home.org (8.13.8/8.13.8) with ESMTP id k9DNB9Zi001000 for ; Fri, 13 Oct 2006 23:11:09 GMT (envelope-from ansi@tit007m.home.org) Received: (from ansi@localhost) by tit007m.home.org (8.13.8/8.13.8/Submit) id k9DJUDK1001394 for questions@freebsd.org; Fri, 13 Oct 2006 19:30:13 GMT (envelope-from ansi) Date: Fri, 13 Oct 2006 19:30:13 +0000 From: "Solovyov, Evgeny" To: questions@freebsd.org Message-ID: <20061013193012.GA1329@tit007m> Mail-Followup-To: questions@freebsd.org References: <715841970607251003o1d358d3dl894291f50a0b8053@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <715841970607251003o1d358d3dl894291f50a0b8053@mail.gmail.com> User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Y-GMX-Trusted: 0 Cc: Subject: Re: ssh tunnel - remote access through nat X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 21:10:11 -0000 On 25.07.06 12:03 , Drew wrote: > Hi, > I've got a box that's nat'd out to the internet. It is occassionally > neccessary for me to access this box remotely. The obvious answer is: > > ssh -R 7777:localhost:22 remote.box cat > > run from the nat'd box where remote box is a place I pretty much always have > access too from anywhere, anytime. The problem is that the connection > between these two boxes is famously unreliable - so I need to ensure that > this connection stays available. Unfortunately, the procedure for this is > not obvious to me. I've thought about a cron job, as the connection would > simply fail if it couldn't bind to 7777 on the remote box to listen. But I'm > thinking there has to be something that makes more sense. Suggestions? > Feedback? Thanks in advance for any pointers. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > You can look in /usr/ports/security/autossh here is a link too: http://www.jfranken.de/homepages/johannes/vortraege/ssh2_inhalt.de.html#ToC16 E. Solovyov -- Indecision is the basis for flexibility.