Link to home
Start Free TrialLog in
Avatar of akp007
akp007Flag for Afghanistan

asked on

tunneling set up on Solaris10 error

Dear experts

I want to have the tunnel constantly running

while [ ! -f /tmp/stop ]; do  ssh -o ExitOnForwardFailure=yes -R 5432:localhost:1521 172.25.34.55 "while nc -zv localhost 1521; do sleep 5; done";  sleep 5; done

getting the error

command-line: line 0: Bad configuration option: ExitOnForwardFailure

Regards
Avatar of Brian Utterback
Brian Utterback
Flag of United States of America image

The ssh command on Solaris doesn't support "ExitOnForwardFailure".
Avatar of akp007

ASKER

is there an other way to write that command.  Appreciate your help

Regards
Take out the unsupported option.
You are creating a remote tunnel?
Avatar of akp007

ASKER

yes. I am trying to create a remote tunnel and keep that tunnel connection alive

regards
Your best bet I to create a shell script that will be transmitting keep alive events through the tunnel while on the system from which the ssh connection is initiated you have a shell script that responds.


You want the system with IP 172.25 to have connection to 5432 that will connect them backto the local system's oracle listener?

Or do you need the tunnel to connect to oracle running on the 172.25 IP?
Avatar of akp007

ASKER

Sorry for not responding your suggestion.  

I have database running on port 1521 on 172.25.34.55

I want to connect to that 172.25.34.55 from 172.25.34.54 using tunnel .  That tunnel should constantly running.  that's what I am trying to achieve.  

Thanks for the help

Regards
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial