The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tunneling NFS through SSH???? ImpeccableCode Filesystems, Disks and Memory 3 05-02-2008 06:50 AM
ssh tunneling goran00 SUN Solaris 3 12-13-2005 05:23 AM
Tunneling ErNci UNIX for Advanced & Expert Users 2 10-07-2005 03:43 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-27-2007
Registered User
 

Join Date: Jun 2002
Posts: 43
SSH Tunneling

Hi all

question -

there are 2 servers A + B. server A is connected to the internet and running a squid proxy server - server B is behind a firewall. I can ssh from A to B but not from B to A. I need internet access on B to update some files. I thought I could use some sort of ssh tunnel to achieve this.

I was thought a remote port forward from A to B. I configured this ( from server A do 'ssh -R 1234:squidproxy_ipaddress:3128 user@server_B) and got a http 403 error when doing the update on B and pointing at localport 1234 which , i thought, indicated a permissions issue on the squid proxy no problem to sort out - except i dont have permissions to do it - the sysadmin can sort it out though

however

The sysadmin says it wont work I should be doing a local port forward on A - i configured this (ssh -L:localhost:3128 user@serverB) and got a 'connection refused error' when doing the update from server B

its not resolved yet as sysadmins unavailable but out of curiosity who is right here - these tunnels can get a bit confusing! - thoughts appreciated as always
Reply With Quote
Forum Sponsor
  #2  
Old 02-27-2007
Registered User
 

Join Date: Jun 2002
Posts: 43
after a little thought just changed my line to

ssh -R 1234:localhost:3128 user@serverB (from server A) - the update is flying - guess thats 1 nil to me - i have the pleasure of telling the sysadmin to come!

many thanks
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0