LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2005, 12:58 AM   #1
dookie23
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0
SSH Question (LocalForward & RemoteForward)


Hi all, I was wondering if you guys have more experience solving a problem like this...

I have this network setup at my work:

Home Machine --ssh--> Trusted Host (TH) --ssh--> Work Machine

So to reach my work machine from home, I have to ssh to TH, then from TH ssh to my work machine. The TH acts as a firewall to block off all other non-ssh connections.

The trusted host can only accept SSH connection (both incoming/outgoing). And there is no direct connection Home Machine <---> Work Machine. I am trying to access the Work Machine from home using VNC (using port 5901). I have tried using a LocalForward with VNC but no luck. Does anybody have a better solution?
 
Old 06-12-2005, 01:46 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
LocalForward should work, are you sure its setup correctly?
from the hom machine you should connect to the Trusted Host with something like this:
Code:
ssh -L 10000:<Work Machine>:5901 <Trusted Host>
then on the Home Machine you use vnc client to connect to localhost:10000

Assuming nothing is blocking the Trusted Host from accessing port 5901 of the Work Machine(eg Trusted Host has to allow tunnels), this should work.


Last edited by Demonbane; 06-12-2005 at 01:48 AM.
 
Old 06-12-2005, 05:22 PM   #3
dookie23
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, I did exactly what you mentioned. No luck. The problem is, somehow, the TH server will not allow any outgoing connection to any port other 23.

I have tried using 2 tunnels to solve this problem. There is not much performance impact.

[dookie23@homebox ~]$ more .ssh/config
Host th
HostName th
LocalForward 2200 workbox:22
Cipher arcfour

Host work
HostName localhost
Port 2200
LocalForward 5901 localhost:5901
Cipher arcfour

Thanks very much for your help. Do you have any better suggestion?
 
  


Reply



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
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
CVS & SSH & Public/private keys guideweb Linux - Software 15 09-09-2005 01:06 PM
ssh && su problem... branque Fedora 3 08-13-2005 05:32 AM
ssh & xemacs question bluknight43 Linux - Software 4 02-20-2005 01:56 AM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:24 AM.

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