Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh tunneling

Status
Not open for further replies.

jaymzter

Vendor
Jul 8, 2002
441
US
My scenario is I have a remote shell login to a Solaris 2.7 server. This server makes a PPP connection to a Linux server, which has a crossover cable running from it to another linux server. X is not installed on either Linux box. I need to access the web server on the 2nd Linux box while PPP connected to the first. I have installed Opera on the Solaris box (I don't have admin rights to the Solaris box, it's a home directory install).

My attempt was to ssh into the first Linux box and have it tunnel my browser connection to port 443 on the second Linux box, using the following command

ssh -L 44433:192.168.132.14:443 some.server.com sleep 1d

I know the tunnel is set up because if I telnet to 127.0.0.1:44433 or try to talk http to that port I get an error response from the 2nd Linux box's web server. But whenever I try Opera with I get no data whatsoever.

The Solaris server itself is running a web server, could that be messing things up? Any thoughts are appreciated
 

So, the "crossover" is just a regular ethernet connection and you have this:

You <-(ssh)-> Solaris <-(ppp)-> LinuxA <-(ip)-> LinuxB

Can you ping LinuxB from Solaris or ssh directly to it or do you have to go through LinuxA?
 
Your diagram is correct. The two Linux servers are paired in that one is arbitrarily "active" and the other "standby". Only the "active" will answer the modem, but sometimes I need access to the web admin tool on the standby. Unfortunately lynx, links, or elinks will not work with the admin web page (due to frames, javascript and cookie requirements).
 
Two things:

1) There was a second question in my post, and

2) Don't crosspost.
 
1) I do not have the ability to ping LinuxB directly from Solaris

2) k
 
Okay, you'll probably have to do a two step ssh tunnel. Remember that the :serverspec: is evaluated by the remote node.

ssh -L localport:localhost:anyport solaris

Then from solaris:

ssh -L anyport:LinuxB:80 linuxA

Once you have that working you can batch it into a single command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top