On 09/08/2016 01:16 PM, gumb wrote:
But how, in that case, IF there were multiple machines at the remote end (which there aren't, but I might at some point want to SSH in reverse back home where I do have more than one device, which is why I want to be sure of the theory), would the router know which machine I'm trying to SSH into? If all I've set up on the client side is an ssh config file in ./.ssh/config with entries such as
Host arbitrary-name Hostname 83.155.42.9
that reaches the IP address and gets me only so far as the router. If I'm supposed to address port 22 then where and how do I specify machine-a or machine-b?
My config file also includes the port number for each entry, e.g. Port 1234
Are you saying that in principle the traffic is always entering via port 22 on the router regardless of what I specify in my config, but after that the port number is read in order to reach the correct device? Or are you saying my config file should specify Port 22 (which would be default so no need to specify explicitly). In which case, I don't understand the next step to get to the right machine.
Because you only have 1 IPv4 address for multiple computers, you need to differentiate the destination. Only one can use port 22. All others require a non-standard port number and you then have to specify the port number on the command line. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org