From owner-freebsd-questions@FreeBSD.ORG Mon Sep 13 23:03:53 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 B1DD916A4CE for ; Mon, 13 Sep 2004 23:03:53 +0000 (GMT) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B16B43D54 for ; Mon, 13 Sep 2004 23:03:53 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay02.plus.net with esmtp (Exim) id 1C6zrT-0006AZ-Pk for freebsd-questions@freebsd.org; Mon, 13 Sep 2004 23:03:51 +0000 Message-ID: <41462808.2060201@freebsd.org> Date: Tue, 14 Sep 2004 00:06:48 +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> <20040913224313.GA78678@falcon.midgard.homeip.net> In-Reply-To: <20040913224313.GA78678@falcon.midgard.homeip.net> 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 23:03:53 -0000 Erik Trulsson wrote: > On Mon, Sep 13, 2004 at 10:15:47PM +0100, Mark Ovens wrote: >> Is it correct that you can't ssh(1) between two machines on the same LAN >> (using NAT) _via the Internet?_ > > What do you mean 'via the Internet'? If both machines are on the same > LAN any connections between them will never go outside the LAN, and > thus never go near 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. > > Most likely your router is configured to only forward connections that > come from the outside. > As I said, it was only a test and I was hoping that by using the router's external hostname it would "simulate" an external connection, obviously it doesn't. > Does it work to access 'postie' via ssh from some machine that is > *actually* on the outside? If it does, then it is the configuration of > your router which is not doing what you want it to. > I don't have access to one until I get to work tomorrow which was why I was trying to simulate it - whilst I have the target machine in front of me. Thanks for the reply. Regards, Mark