Alexander Lamaison wrote:
> > This is a simple php script witch I use to connect to FreeBSD
> >
> > <?php
.. long code ..
Suggest setting up pubkey auth from the webserver and using:
<?php
unset($lines);
exec("ssh -iprivatekeyfile [email protected] uptime",$lines);
$buf = implode("\n", $lines);
?>
If you want to display the output rather than parse it in code, I
suggest using passthru() instead of exec() and then you don't need
$lines at all.
If you plan on making more advaned use of libssh2 than simply
executing some odd command on a server, then please do as Alexander
described - please help us reproduce the problem using only C code.
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel