From owner-freebsd-questions@FreeBSD.ORG Tue Oct 21 03:27:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 542F51065676 for ; Tue, 21 Oct 2008 03:27:12 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by mx1.freebsd.org (Postfix) with ESMTP id 0ED948FC1A for ; Tue, 21 Oct 2008 03:27:11 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.42.138] (port=39874 helo=smtp7.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1Ks7tm-0007Xi-Rb; Tue, 21 Oct 2008 05:27:10 +0200 Received: from cp268254-a.landg1.lb.home.nl ([84.25.65.88] helo=ra.egypt.nl) by smtp7.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1Ks7tm-00029W-88; Tue, 21 Oct 2008 05:27:10 +0200 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 6D58839841; Tue, 21 Oct 2008 05:27:09 +0200 (CEST) Message-ID: <48FD4C0D.8090205@boosten.org> Date: Tue, 21 Oct 2008 05:27:09 +0200 From: Peter Boosten User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: John Almberg References: <1479DAD4-A72B-415E-B8B0-FDEA810161ED@identry.com> In-Reply-To: <1479DAD4-A72B-415E-B8B0-FDEA810161ED@identry.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1Ks7tm-00029W-88 X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.6, required 5, autolearn=not spam, BAYES_00 -2.60, SPF_PASS -0.00) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Fwd: mysql connection through ssl tunnel 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: Tue, 21 Oct 2008 03:27:12 -0000 John Almberg wrote: > > Where 'admin' is the user I am logging into on the remote machine, and > 'example.com' is the hostname of the remote machine. I guess equivalent > to the following? > > ttyv7 "/usr/bin/ssh -nNTx -R 3306:127.0.0.1:33006 admin@example.com >>/dev/null 2>&1" unknown on > > Port 33006 is not a typo. There are databases running on both machines, > so I need to use a different port for the tunnel. I don't think this will work because of 127.0.0.1 not being a FQDN, but I could be mistaken. > > And as far as I can tell, I reload /etc/ttys with 'kill -1 1'. > > This looks dangerous... > You can safely HUP it... Peter -- http://www.boosten.org