LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2006, 04:14 PM   #1
rajeshsfo
LQ Newbie
 
Registered: Aug 2006
Posts: 19

Rep: Reputation: 0
Remote Access


I have configured my two linux boxes as follows

Cable Modem --> LinkSys Router with phone output -> D-Link Router -> Two Linux Systems.

Question :

I wanted to access my home Linux boxes from my work place.

How this can be achieved ?

Thanks a lot in advance
 
Old 08-16-2006, 06:12 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
Ok Lets just use ssh as the connection to linux machine 1.
Setup sshd on linux machine 1. Let it use default port 22.
If machine has a firewall enabled make sure port 22 is open.
Make sure it is working.

Ok do the same to linux machine 2. Set default port to 22 as well.
make sure it is working. Open port 22 if firewall is enabled.

Info on setting up sshd. http://www.suso.org/docs/shell/ssh.sdf

Now you need to setup port forwarding on the two routers. Should be able to get the details on this from the makers of each router. But this how I would define it.

Machine 1.
External wan IP on Linksys Router using port 10100. ( You could use port 22 but may get a lot of ssh attempts to connect. )
Now using external wan IP port 10100 forward it to the wan IP on the Dlink router to port 10100.
Now port forward from the wan IP port 10100 on the dlink router to the lan IP of machine one port 22.

Machine 2.
External wan IP on Linksys Router using port 10101. ( You could use port 22 but may get a lot of ssh attempts to connect. ) ( But if you used port 22 in the first example for the portforwarding from the external IP you would want to use say 23 or other) ( Again it is better to use a high port value. )
Now using external wan IP port 10101 forward it to the wan IP on the Dlink router to port 10101.
Now port forward from the wan IP port 10101 on the dlink router to the lan IP of machine one port 22.

Or you could just connect to machine 1 from the outside then connect to machine 2 from machine 1. Uisng the machine 1 setup above.

extIP,port10100->-linksysrouter-/>/-extIP,port10100->-dlinkrouter->-linuxmachine1-IP,port22

Brian1
 
Old 08-17-2006, 05:40 AM   #3
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
If your main IP address is dynamic it can be a hassle to figure out what it is each time you leave and then type the number in at work to connect. I recommend also, in addition to the poster above's suggestions, to create an account at something like www.no-ip.com so that you can have a static domain name pointing to a dynamic IP address. How it works is you run a client on your linux box (or Windows box, they have Windows and Linux clients), that sits in the background and periodically (every 5 minutes or so) connects to no-ip's servers and updates the IP address of your network, syncing it up to the sub-domain you registered (it's free). This will allow you to change the IP addy of your network (eg, flip the modem off and flip it back on) without having to find the new IP address or anything, and it's easier to type in rajeshsfo.no-ip.com than it would be xxx.xxx.xxx.xxx each time.
 
Old 08-17-2006, 10:04 AM   #4
blogonaut
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Something worth looking into is setting up a VPN between systems, if just to share files. For this I reccomend Hamachi, which, while not open source, is stupidly easy to set up. I've been very satisfied with it
 
Old 08-17-2006, 12:18 PM   #5
rajeshsfo
LQ Newbie
 
Registered: Aug 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks You Friends for your valuable suggestions and guidance. This really helped solving my problem.
 
  


Reply


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
Remote access Japi Linux - Software 1 02-12-2006 01:57 PM
Remote Access Help mengsk Linux - Networking 4 01-25-2006 09:30 PM
Remote Access Kenster Red Hat 7 12-14-2003 04:01 AM
Remote Access... verbal Linux - Newbie 2 07-28-2002 04:17 PM
Remote Access Breezwell Linux - Networking 3 05-17-2001 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 PM.

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