Skip to main content
6 events
when toggle format what by license comment
Mar 27, 2020 at 1:20 comment added David Schwartz There are all kinds of options that they could set up including things like VPNs or relaying through a machine with a public IP address that is VPN'd onto the private network.
Mar 26, 2020 at 22:07 comment added J.Doe SSH reverse tunnel is not an option?
Mar 26, 2020 at 22:00 comment added Gordon Davisson @J.Doe In general, you can't connect to computers on private IP numbers from the outside. There's an exception, though: routers can be configured to "forward" incoming connections on specific ports to specific internal (private) addresses. So if the person in China had set their router to forward port 22 (the one ssh uses) to 192.168.1.19, then connecting to their public address with ssh would actually get you a connection to that private address. But there's no way for you to connect to, say, their 192.168.1.20, unless they'd configured some other port to forward to that other address.
Mar 26, 2020 at 17:35 comment added J.Doe Related to the second question. Suppose I SSH the IP address of someone in China. For me that IP address is the IP of the modem and that modem is attach to a router. From that router, certain private IP are distributed from the router. How can I SSH one of those three machine if I only use the Public IP? Do I need the Public and the Private IP to access that machine with a command like ssh 47.144.221.167:[email protected] ... just an example
Mar 26, 2020 at 17:30 vote accept J.Doe
Mar 26, 2020 at 17:10 history answered David Schwartz CC BY-SA 4.0