From owner-freebsd-questions@FreeBSD.ORG Tue Oct 21 03:25:25 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 515AF1065675 for ; Tue, 21 Oct 2008 03:25:25 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) by mx1.freebsd.org (Postfix) with ESMTP id 0B0B98FC1B for ; Tue, 21 Oct 2008 03:25:24 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.42.141] (port=48736 helo=smtp10.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1Ks7s3-0002h1-Nj; Tue, 21 Oct 2008 05:25:23 +0200 Received: from cp268254-a.landg1.lb.home.nl ([84.25.65.88] helo=ra.egypt.nl) by smtp10.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1Ks7s2-0001BE-Ta; Tue, 21 Oct 2008 05:25:22 +0200 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 3CC65398DE; Tue, 21 Oct 2008 05:25:22 +0200 (CEST) Message-ID: <48FD4BA2.9070702@boosten.org> Date: Tue, 21 Oct 2008 05:25:22 +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> <6E564226-98BE-4464-BA6C-A95848F02ABC@identry.com> <48FD47E6.8040201@boosten.org> In-Reply-To: <48FD47E6.8040201@boosten.org> 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: 1Ks7s2-0001BE-Ta 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: 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:25:25 -0000 Peter Boosten wrote: > John Almberg wrote: >> I tried this, and not surprisingly, it didn't work. Now I'm trying to >> debug it... >> > > Maybe some mixup in the keys? In my example ssh tries to read the > private key of root on the connecting server, so the server where the > database is located, because init is run as root. If you need another > key, then you need to specify this with the -i parameter. > > > >> Question... if I want to ssh from the database server to the application >> server (in the direction show -R), I need to use port 48444 (not the >> actual port, but something high). In other words, I need to do something >> like: >> >> ssh admin@example.com -p 48444 >> >> Does this ssh port have anything to do with trying to start this ssh >> tunnel? In other words, do I need to add a '-p 48420' to the ttyv7 command? I now see where you're going: you would have in case you ran sshd on another port than 22. > > regards > > Peter > -- http://www.boosten.org