Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2004 00:02:32 +0100
From:      Mark Ovens <marko@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Quick and simple ssh(1) question
Message-ID:  <41462708.3090405@freebsd.org>
In-Reply-To: <41462266.9000404@mac.com>
References:  <41460E03.8020408@freebsd.org> <41462266.9000404@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <router_hostname> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41462708.3090405>