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 03-05-2007, 03:15 PM   #1
Mangenius
Member
 
Registered: Jan 2007
Posts: 30

Rep: Reputation: 15
setting up an ssh soxy or local ssh tunnel from within an ssh soxy


I did a quick search in this forum, but did not find the appropriate information. The Subject is rather confusing so allow me to expand upon it.

I'm on a computer outside a corporate network, maybe at a coffee shop or something. Let's call it homePC. I'm running Windows and I want to connect to a linux box via web browser on the corporate intranet. The problem is this linux box (let's call it corporatePC3) is three times removed from homePC. In other words, I must ssh into corporatePC1. Then ssh from corporatePC1 to corporatePC2. Finally, I can talk to corporatePC3. In essence, corporatePC1 CANNOT see corporate PC3 -- but corporatePC2 can. Remember, homePC is Windows and corporatePC1, corporatePC2, and corporatePC3 are all linux boxes.

Here's what I'm doing so far:

I'm sshing into corporate PC1 from homePC via Putty. Once I log in, I change the tunnel settings to dynamic on source port 5000 via putty configuration. Then I open up IE and change the proxy settings for SOCKS4/5 to 127.0.0.1 and port 5000. Now I can hit certain boxes via port 80 from corporatePC1.

But I want to talk to corporatePC3. So, from within the putty session (homePC to corporatePC1), I typed in ssh -D 5000 admin@corporatePC2, I typed in my password, and I'm logged on. I goto the IE web browser, but I cannot access corporatePC3. If anyone can help me, I'd REALLY appreciate it.

Thank you very much for your time and generosity.

Take care.
 
  


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-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
Trouble setting up SSH tunnel tom-ubuntu Linux - Networking 3 02-24-2007 08:14 PM
Copying files to local computer whilst in ssh tunnel Maverick1182 Linux - Newbie 4 10-07-2006 01:29 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
setting up ssh tunnel for vnc jr0 Linux - Networking 3 10-22-2005 11:38 AM

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

All times are GMT -5. The time now is 12:50 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