0

I try to connect to my remote computer through ssh. I have a public IP address that I found from whatismyip.com but I can not connect to it.

I can to ping the IP address. I believe that this public IP is from the router and not from the computer.

Any ideas on how to connect to the computer? or how to get its public IP?

  • Your remote computer is behind a router? Is this a domestic router that does NAT too? If so you need to port forward. – roaima Dec 16 '18 at 19:53
  • Yes, the remote computer is behind a router, I am not sure the router does NAT, I have no access to it, I will try to forward the port – Enrique Ramos Muñoz Dec 16 '18 at 19:58
  • I have forward the port 3389 to the local IP of one of my computer, but if I try another port it doesn't work, do you know which other port can I use for another computer behind the same router – Enrique Ramos Muñoz Dec 17 '18 at 21:49
  • Why would you forward port 3389 (Remote Desktop) when you want to connect with SSH (port 22)? – roaima Dec 17 '18 at 21:53
  • The router doesn't allow me to forward port 22, it says it is reserved for SSH – Enrique Ramos Muñoz Dec 17 '18 at 22:33
0

You need to setup Port Forwarding on your router. Just look for page with similar name on router's setup page. In this particular case you need to forward External 22 port to your PCs local IP port 22.

  • I have forward the port 3389 to the local IP of one of my computer, but if I try another port it doesn't work, do you know which other port can I use for another computer behind the same router – Enrique Ramos Muñoz Dec 17 '18 at 21:49
  • You are connecting External Router inbound ports to any of your local PCs inbound ports. Your ISP may block some ports. You can try ask your ISP which inbound ports are allowed to use. – Nerijus Spl Dec 18 '18 at 12:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.