From owner-freebsd-questions@FreeBSD.ORG Mon Sep 13 22:59:32 2004 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 3386A16A4CE for ; Mon, 13 Sep 2004 22:59:32 +0000 (GMT) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BE243D64 for ; Mon, 13 Sep 2004 22:59:31 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay03.plus.net with esmtp (Exim) id 1C6znH-0002L8-8v for freebsd-questions@freebsd.org; Mon, 13 Sep 2004 22:59:31 +0000 Message-ID: <41462708.3090405@freebsd.org> Date: Tue, 14 Sep 2004 00:02:32 +0100 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <41460E03.8020408@freebsd.org> <41462266.9000404@mac.com> In-Reply-To: <41462266.9000404@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Quick and simple ssh(1) question 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: Mon, 13 Sep 2004 22:59:32 -0000 Chuck Swiger wrote: > Mark Ovens wrote: >> Is it correct that you can't ssh(1) between two machines on the same LAN >> (using NAT) _via the Internet?_ >> >> Strange question I know, but I need to be able to access one of my >> machines, postie, remotely. I've got sshd(8) running and can ssh(1) to >> it from a local machine using it's local hostname. However, since I only >> have a single 'net connection here I tried to test connecting remotely >> by ssh(1)'ing to my router's 'net-facing hostname but I get >> >> ssh: connect to host port 22: Connection refused >> >> Port 22 is forwarded to postie on the router. > > Given time and sufficient determination, you ought to be able to make this > work, but it's a real pain-- [snip detailed info] I think that answers my question - it won't work the way I'm trying it. As I said, this was just an attempt to test connecting from outside; guess I'll have to wait until I get to work tomorrow and try it from there (which is where I really want to connect from), it's just that if it doesn't work I'll have to wait until I get home to change things - a bit of a pain. Thanks for the answer. Regards, Mark