How do devices know how to connect a server from a different network using SSH
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 188.8.131.52. A device from a different location wants to connect to the specific server mentioned earlier using SSH from 184.108.40.206. With so many devices on the network 220.127.116.11 how does the computer know that 18.104.22.168 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.