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! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-03-2012, 03:19 AM
|
#1
|
Member
Registered: Mar 2008
Posts: 69
Rep:
|
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!
|
|
|
05-03-2012, 03:31 AM
|
#2
|
LQ Newbie
Registered: Mar 2004
Location: Calgary
Distribution: Ubuntu, Arch, Gentoo, Debian
Posts: 8
Rep:
|
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.
|
All times are GMT -5. The time now is 03:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|