Networking Forums

Networking Forums > Computer Networking > Linux Networking > sshing into computers behind a router

Reply
Thread Tools Display Modes

sshing into computers behind a router

 
 
Chris Bruyere
Guest
Posts: n/a

 
      01-05-2004, 11:50 PM
Hi All, I have two machines, sitting behind a D-Link router. Both are
running Mandrake Linux 9.0 and I would like to be able to ssh into both
machines from the outside world. I have set the router to forward anything
going to port 22 but I cannot seem to do anything. I have tried to give
the computers names, thing1 and thing2 and try to ssh like:

ssh (E-Mail Removed)

and I get the following error:

host/servname not known

Any help would be greatly appreciated

 
Reply With Quote
 
 
 
 
Dragan Colak
Guest
Posts: n/a

 
      01-06-2004, 12:14 AM
On Tue, 06 Jan 2004 00:50:56 +0000, Chris Bruyere wrote:

> Hi All, I have two machines, sitting behind a D-Link router. Both are
> running Mandrake Linux 9.0 and I would like to be able to ssh into both
> machines from the outside world. I have set the router to forward anything
> going to port 22 but I cannot seem to do anything. I have tried to give
> the computers names, thing1 and thing2 and try to ssh like:
>
> ssh (E-Mail Removed)
>
> and I get the following error:
>
> host/servname not known
>
> Any help would be greatly appreciated


To be able do address your machines by name you would need to have a
domain registered or use a service like dyndns.org or similar. Otherwise
you can access your machines only by the IP address of your router. And
you can access only one of the machines on port 22 because you can forward
port 22 of the router only to one internal machine.

Dragan

 
Reply With Quote
 
jack
Guest
Posts: n/a

 
      01-06-2004, 09:20 AM
Chris Bruyere wrote:
> Hi All, I have two machines, sitting behind a D-Link router. Both are
> running Mandrake Linux 9.0 and I would like to be able to ssh into both
> machines from the outside world. I have set the router to forward anything
> going to port 22 but I cannot seem to do anything. I have tried to give


What You can do is to redirect ssh traffic to one (and only one) of Your
inside machines and acces that one from the outside. If You then need to
access the other one, You can ssh from Your first into that second box.


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...

 
Reply With Quote
 
Lawrence
Guest
Posts: n/a

 
      01-06-2004, 11:47 AM
For the second machine you could forward a different port to port 22
on the second machine, if supported by the router or have sshd listen
on a different port on the second machine.

Assuming the router is running NAT, i.e. your ISP only provides a
single IP address then you would ssh to the ip address of the router
on default ssh port for machine 1 and alternate port for machine 2.

On Tue, 06 Jan 2004 11:20:46 +0100, jack <(E-Mail Removed)> wrote:

>Chris Bruyere wrote:
>> Hi All, I have two machines, sitting behind a D-Link router. Both are
>> running Mandrake Linux 9.0 and I would like to be able to ssh into both
>> machines from the outside world. I have set the router to forward anything
>> going to port 22 but I cannot seem to do anything. I have tried to give

>
>What You can do is to redirect ssh traffic to one (and only one) of Your
>inside machines and acces that one from the outside. If You then need to
>access the other one, You can ssh from Your first into that second box.
>
>
>Cheers, Jack.


Lawrence

usenet at lklyne dt co dt uk
 
Reply With Quote
 
Chris Bruyere
Guest
Posts: n/a

 
      01-06-2004, 03:04 PM
On Mon, 05 Jan 2004 17:48:58 +0000, Chris Bruyere wrote:

> Hi All, I have two machines, sitting behind a D-Link router. Both are
> running Mandrake Linux 9.0 and I would like to be able to ssh into both
> machines from the outside world. I have set the router to forward anything
> going to port 22 but I cannot seem to do anything. I have tried to give
> the computers names, thing1 and thing2 and try to ssh like:
>
> ssh (E-Mail Removed)
>
> and I get the following error:
>
> host/servname not known
>
> Any help would be greatly appreciated


Great! Thanks a lot for all your help guys.

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP/IP not working on one of two computers -> 1 router Phil, Non-Squid Wireless Internet 1 11-14-2006 03:29 PM
2 Computers, 1 wireless router Ascertain20 Wireless Networks 8 10-15-2005 04:47 PM
How many computers on one router kman214 Wireless Networks 4 08-12-2005 05:25 PM
network between my to computers using the router Ed Windows Networking 0 07-29-2003 03:51 AM
Dsl -> switch -> 3 computers & wireless router -> laptop -- problems seeing all 4 computers in "Network Neighborhood" Kraw Wireless Internet 0 06-26-2003 11:18 PM



1 2 3 4 5 6 7 8 9 10 11