Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-03-2012, 03:19 AM   #1
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15
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?

Old 05-03-2012, 03:31 AM   #2
LQ Newbie
Registered: Mar 2004
Location: Calgary
Distribution: Ubuntu, Arch, Gentoo, Debian
Posts: 8

Rep: Reputation: 4
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.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH no route to host error. can ssh outside lan, but not to clients on lan... jmd9qs Linux - Networking 3 01-21-2012 11:28 AM
Forwarding SSH from Devil-Linux router to LAN PC kevinfishburne Linux - Networking 10 03-18-2008 05:29 AM
Two computers behind router, how do I ssh from outside the LAN? kdnewton Linux - Networking 13 08-30-2006 02:38 AM
HTTPS, HTTP, SSH on Fedora Core 5, Linksys WRT54G router, can see page on LAN dracoscool Linux - Networking 2 04-13-2006 03:32 AM
Ssh available from Lan, not Wan, router settings correct zoonil Linux - Networking 1 01-26-2006 04:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration