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.
|
 |
06-20-2003, 12:10 PM
|
#1
|
Member
Registered: Jun 2003
Location: UK
Distribution: Devuan Beowulf
Posts: 514
Rep:
|
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
|
|
|
06-20-2003, 12:20 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
06-20-2003, 12:43 PM
|
#3
|
Member
Registered: Jun 2003
Location: UK
Distribution: Devuan Beowulf
Posts: 514
Original Poster
Rep:
|
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
|
|
|
06-20-2003, 12:53 PM
|
#4
|
Member
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456
Rep:
|
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.
|
|
|
06-20-2003, 01:39 PM
|
#5
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Either that or just forward to one box and then ssh from there to the others - the choice is yours.
|
|
|
All times are GMT -5. The time now is 06:56 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
|
|