[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Remote SSH (dynamic IP) without third-party server



On 2020-08-03 16:52, Nate Bargmann wrote:
Let's say machine 1 always gets 192.168.1.1 and machine 2 gets
192.168.1.2 from the router's DHCP server.  To SSH into each from the
public Internet set up port forwarding on the router.  OpenWRT also
allows port translation and some off the shelf routers do not.  As I use
OpenWRT, all of the machines on my LAN listen on port 22 for SSH.  Then
I set up the port forwarding table similar to:

Incoming port	Machine		Port
10022		192.168.1.1	22
20022		192.168.1.2	22

On 2020-08-03 19:18, Stefan Monnier wrote:
> I personally like using port 22nnn for the SSH port of host 192.168.1.nnn


I have done similar port forwarding tricks in the past. If/ when I have the need again, I will probably do SSH jump hosts:

https://en.wikibooks.org/wiki/OpenSSH%2FCookbook%2FProxies_and_Jump_Hosts


David


Reply to: