Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Launching ssh without a tty

From: Philip Le Riche <pleriche(at)altair.steria.co.uk>
Date: Fri Dec 06 2002 - 12:03:39 EST


On receipt of a specially coded email, I want to launch ssh to set up a vpn with a remote host. In my sendmail (8.10 I think) aliases file, I've got an alias like "|/users/me/vpn 2>&1 >>/tmp/vpn.out", and I've created a shell script /user/me/vpn which does

ssh -v -f -N -n -l leriche.p -R 8099:localhost:99 $ipaddr

If I su - to daemon (which sendmail uses to execute commands to pipe mail through) and then run my script from the command line, it works just fine, showing that it can find the necessary keys, but when I send mail to the alias, nothing seems to happen. Not even any verbose output to /tmp/vpn.out.

I thought the -N and/or the -N would allow ssh to work in this environment, but apparently not. Any ideas?

  • Philip --
    Philip Le Riche Voice: +44 1442 884390 (Ouaithe qu'i' sait L'Riche, chu Fax: +44 1442 884943 pouôrre baloque né pâle pon l'Jèrriais) Email: pleriche@altair.steria.co.uk
Received on Fri Dec 6 13:15:30 2002

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


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