How do devices know how to connect a server from a different network using SSH
Hi
A SOHO network exists with many devices on it including more then 1 server, several end clients and network switches. Lets say the private IP address for a specific server is 192.168.0.10 we will say the public IP address for the whole network is 11.2.2.11. A device from a different location wants to connect to the specific server mentioned earlier using SSH from 141.10.2.2. With so many devices on the network 11.2.2.11 how does the computer know that 141.10.2.2 wants to communicate with the server at 192.168.0.10? Using putty as an example we know that SSH communicates on port 22, how would the computer know that we want to connect to 192.168.0.10 on the private network and not another one of the servers with SSH setup? Does the person on the private network need to setup SSH to work on different port numbers for each server that is expecting to be remotes into?
For some context i am currently trying to setup a basic Linux server on my own home network and I am confused as to how I would connect to my servers when I am on different networks. I plan to have more then one server and I intend to use virtual machines. I am learning and trying to figure out how i would connect to each server.