Showing results for 
Search instead for 
Do you mean 
Our staff are currently offline, but you can use the community 24/7
Remember to accept a reply to your question as the answer!

How does an incoming SSH connection request to a public IP a

[ Edited ]

Let's say I have two machines mA (Private ip: and mB (Private ip: within the same LAN whos public IP address is These machines both have users with common username root. Additionally, mA has user uA and mB has user uB.

I understand how ssh communication from mA or mB to another public IP works. SSH from mA port 22 creates a NAT table in the router which corresponds to port 22 as source address. So any incoming reply from ssh requests from to port 22 can be reverse translated to mA port 22. This is possible because of the existence of NAT table entry for mA.

Now, if any other server outside the LAN tries to ssh to mB using ssh root@ How does the router know which machine in the LAN to send this SSH request? (Since there is nothing to identify mB in NAT table now. And both mA and mB have root).

Is it different from what happens when you try to ssh uB@ where user uB only exists in mB?


Re: How does an incoming SSH connection request to a public


This question is an exact copy from where the answer is also given.


Three – Covid-19

In the interest of ensuring the health & safety of our employees, our contact support centres are open, however we currently have limited resources. This may cause higher than normal wait times.

Under the advice of the government, our stores remain open. We have enhanced cleaning in place and are strongly enforcing social distancing which we encourage our customers to respect. We have also reduced the opening hours in all our stores

Self-serve options such as, My3 App & Web, 1913 & SMS Codes are also available to you.

For more tips & information, please click here.

We apologise for any inconvenience caused and thank you for your understanding.