Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Running ssh from bash scripts

From: Markus Preller <Markus.Preller(at)ivmed.imed.uni-erlangen.de>
Date: Wed Mar 05 2003 - 07:30:01 EST


Hi,

I'd like to ask for some advice on a topic that's giving me trouble for some time now. Here's what I try to do:

I'd like to set up a ssh tunnel via ssh -f -N -R <remote-port>:some-host:<local-port> user@remote-host.

The command above resides in bash script on a RedHat 7.1 box and should be started under certain conditions by cron periodically. I tried this on a Sun running Solaris 8 using OpenSSH 3.1 pl 1 and it worked perfectly well. But when I try the same script on the RedHat machine using the same ssh version nothing happens - the ssh process gets started but no connection is made.

When I run the bash script from the comand line on the Linux box then everything's just fine - the ssh process is launched and the connection is set up.

It seems that this is more a Linux- than ssh-specific problem but this list seemed to be the right place to ask for something like that.

Thanks in advance

Markus Preller Received on Wed Mar 5 14:01:20 2003

Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:55 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library