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
akp007Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian UtterbackPrinciple Software EngineerCommented:
The ssh command on Solaris doesn't support "ExitOnForwardFailure".
0
akp007Author Commented:
is there an other way to write that command.  Appreciate your help

Regards
0
arnoldCommented:
Take out the unsupported option.
You are creating a remote tunnel?
0
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

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

regards
0
arnoldCommented:
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?
0
akp007Author Commented:
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
0
arnoldCommented:
The systems seem to be on the same segment. Not sure why you want a tunnel.

On the database side create a shell script keepalive.sh
#!/bin/sh


while (TRUE)
do
echo "keepalive"
sleep 15
done


From the other sysytem

ssh -n -f -L 1234:localhost:1521 username@172.25.34.55 '/path/to/script/keepalive.sh'

Alternatively,
You can setup a script here as well. Keeptunnel.sh

#!/bin/sh

while (true)
do
ssh -n -L 1234:localhost:1521 username@172.25.34.55 '/path/to/script/keepalive.sh'
sleep 15
done

Keeptunnel.sh &
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.