I am trying to SSH outside the LAN. Someone told me I have to use the Public IP because the Private IP won't allow you to access the device except if you are in the LAN.
Suppose I want to access a machine in China. I know that the Public IP is linked to the modem and the router linked to the modem. Only the router will distributed a unique Private IP to each machine. So suppose there are three machines and I want to access one of them.
With SSH, do I need to Public and the Private IP to access that machine? Can I do this just in using the
ssh command line?