> > there's one thing you _can_ do and that is to set a blank
> > passphrase if you are sure nobody is out to screw your happiness :)
One more solution is to do something that cvs does with CVS_RSH set to ssh
- use something called "co-processes". Basically your program opens two
pipes, forks and then the parent and child proceed to close respective
ends of the pipes. The child then "reopens" stdin and stdout (fds 0 and 1
respectively) as the pipe fds, and then does an execs ssh.
Once through with this - your parent process has a couple of fds that are
attached to stdin/stdout of the ssh process. Thus whatever ssh writes to
its stdout would appear on your pipe fd, and whatever you write to the
second pipe fd, would go to the ssh and eventually to the remote machine.
This ofcourse requires you to do C programming, which may be a drawback if
you want a quick and dirty shell script solution. But this should be
do-able with perl pertty easily.
Regards,
Kedar.
----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/