Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh tunnel across 3 systems possible?

Reply
Thread Tools Display Modes

ssh tunnel across 3 systems possible?

 
 
Beemer Biker
Guest
Posts: n/a

 
      04-18-2006, 07:06 PM
From MYPC I can ssh (using cygwin or putty) to a linux box LBONE (i am not
root) then from there I can ssh to LBTWO another linux box where I am root.

Once the connection is made, on MYPC i set up a route as follows...

route add LBTWO mask 255.255.255.255 MYPC metric 1

OK, I can ping LBTWO from MYPC but unfortunately, that is about all I can
do. I cannot even ssh to it. At a minimum I would like to ssh.

I have an server running on LBTWO that talks on port 12345 and I can put a
client on LBONE that works fine. Now I want to run the client on MYPC which
is two removed from LBTWO.

I thought if I could try something like this from LBTWO

ssh -L 12345:MYPC:12345 LBONE_REVERSE -l username

the ip address of LBONE from LBTWO is not the same backward, slightly
different.

I think if I could directly ssh to that LBTWO system from MYPC then I could
get things working. Can this be made to work? Maybe there is a firewall
on LBONE. How can I tell?


...TIA..


--
================================================== =====================
Beemer Biker (E-Mail Removed)
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
================================================== =====================


 
Reply With Quote
 
 
 
 
Beemer Biker
Guest
Posts: n/a

 
      04-18-2006, 07:13 PM
> route add LBTWO mask 255.255.255.255 MYPC metric 1
---------------------------------------^^^^
sorry, my typo, was actually LBONE, the first linux box
pinging actually works, but ssh to LBTWO does not.
 
Reply With Quote
 
Poly-poly man
Guest
Posts: n/a

 
      04-19-2006, 01:29 PM
Beemer Biker wrote:
> From MYPC I can ssh (using cygwin or putty) to a linux box LBONE (i am not
> root) then from there I can ssh to LBTWO another linux box where I am root.
>
> Once the connection is made, on MYPC i set up a route as follows...
>
> route add LBTWO mask 255.255.255.255 MYPC metric 1
>
> OK, I can ping LBTWO from MYPC but unfortunately, that is about all I can
> do. I cannot even ssh to it. At a minimum I would like to ssh.
>
> I have an server running on LBTWO that talks on port 12345 and I can put a
> client on LBONE that works fine. Now I want to run the client on MYPC which
> is two removed from LBTWO.
>
> I thought if I could try something like this from LBTWO
>
> ssh -L 12345:MYPC:12345 LBONE_REVERSE -l username
>
> the ip address of LBONE from LBTWO is not the same backward, slightly
> different.
>
> I think if I could directly ssh to that LBTWO system from MYPC then I could
> get things working. Can this be made to work? Maybe there is a firewall
> on LBONE. How can I tell?
>
>
> ..TIA..
>
>


How is this set up? I would imagine it would be something like;

|---|
[Mypc]---------[eth0 on PCONE] [eth1 on PCONE]-----------------[PCTWO]


(They all have static ip's, crossover cable used everywhere)


Correct that if it's wrong.


Anyway, if ping requests work, it's probably just a firewall on PCONE
blocking ssh across the two networks. Make sure everything is set up on
PCONE correctly.

hih,
poly-p man

P.S.
You didn't REALLY name your computers like that?

 
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
CMAK for x64 Systems Ben Windows Networking 0 02-02-2008 03:51 PM
VPN hides some systems Pachydermitis Windows Networking 0 06-13-2007 07:53 PM
RWW for non SBS systems wanted Dominik Rappaport Windows Networking 0 11-18-2006 02:00 PM
Pre-N systems Ned Brickley Wireless Internet 3 10-26-2005 12:08 AM
WPA and other operating systems Alan Broadband Hardware 3 08-16-2004 05:19 PM



1 2 3 4 5 6 7 8 9 10 11