LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh into lan behind router (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-into-lan-behind-router-943043/)

mad_penguin 05-03-2012 02:19 AM

ssh into lan behind router
 
Hi guys,

One friend of mine has asked me to check something on two linux machines he has on it's lan which is behind a router/firewall. As details it only gave me the two private ip's of them two linux machines to which I should connect by ssh, the login details(username/password) and the external/public IP address. I believe that it should work on standard port 22, as he didn't mentioned any other port settings. NMAP seeis that his router has port 22 opened(filtered, actually).

I can't talk to him now as he's not available.

Any idea how should I get into each of those linux servers by ssh?

Cheers!

stobbsm 05-03-2012 02:31 AM

If he has port 22 forwarded to one of those machines, you can log into that one, and then ssh into the other local machine.

If port 22 is filtered, but not forwarded, then the router would deny your ssh attempt, as it has no where to send the request. I know of no way to connect to a machine behind the LAN without a port forward being setup, or having a VPN of some kind so that you can ping the LAN machine individually.


All times are GMT -5. The time now is 08:30 AM.