G'day, all! I am trying to create an ssh connection, with port forwarding between my 
machine at work and my box at home.  I have it working great (no password required!), 
as long as I start the session within a terminal window.  Well, the next step is to be 
able to start up the connection via a script, "at will" so to speak.  Here is the 
command I use from within Eterm:
ssh -X -g -L 9090:bishop.dhs.org:8081 -R 9090:dbishop.micron.com:23 bishop.dhs.org

Now, when I try and use that same command from withtin a script, it bombs out with an 
error about "no controlling tty" or somesuch nonsense. "Aha!" I say, and go off to 
read the man page. Well, one -N later, and it still isn't working.  I assume it is 
creating the connection, forwarding the port, and then immediately dropping the 
connection because there is nothing traveling across it. I could be wrong ;-)

Well, that's it in a nutshell.  I need to be able to create an ssh connection with 
port forwarding/reverse-forwarding from within a script that will not be in a 
terminal, with no one around the machine, and no remote command executing. What am I 
missing? Besides a clue, I mean...

Sincerely,

D.A.Bishop

Reply via email to