LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 06-20-2003, 12:10 PM   #1
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
ssh to multiple lan machines from the internet - How?


I have a question regarding using ssh to access a machine on a personal network from a remote location?

Is it required to use different incoming ports for each machine on the lan eg

10.0.0.1:400
10.0.0.2:401

and if so, what files would i need to change.

If their is a simpler method/approach, could you point me to the answer.

Thx
 
Old 06-20-2003, 12:20 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Ports sounds like the way to do it.

I assume you are using a singe machine with a single ip address as a gateway. You will need to add either iptables or ipchains rules to that machine that point to the internal one(s) you want to access.
 
Old 06-20-2003, 12:43 PM   #3
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Original Poster
Rep: Reputation: 30
I am using a router for dhcp etc, plugged into it are 3 switches and a whole load of machines. SSH from the lan side is easy, but i want to be able to go on holiday and still do remote admin, from net cafes abroad

Thx anyways
 
Old 06-20-2003, 12:53 PM   #4
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
do you have a linux firewall before the router? if you have a linux firewall then you can use the iptables or ipchains rules (as david pointed out ) to forward all the traffic to a specified port to a internal machine. you can then run the ssh server on the internal machine on the specified port. if you dont have a linux firewall then you need to confiure port forwarding on the router.
you need to setup the individual ssh servers on the internal machines to listen on different ports.
 
Old 06-20-2003, 01:39 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Either that or just forward to one box and then ssh from there to the others - the choice is yours.
 
  


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
Multiple Machines behind single Static IP - failing remote ssh Animalector Linux - Security 8 08-18-2005 06:01 PM
Multiple Machines Compiling RemusX2 Linux - General 4 07-06-2005 11:54 AM
Multiple Machines Compiling RemusX2 Linux - General 2 07-06-2005 04:44 AM
How to know what machines are in LAN ? pvv Linux - Networking 3 03-25-2004 04:59 AM
LAN machines unable to connect to Internet through (firewall on )gateway nishi_k_79 Linux - Security 1 11-13-2003 01:30 PM


All times are GMT -5. The time now is 09:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration