Re: [PEPr] Comment on Networking::Net_OpenSSH

From: Date: Fri, 30 Jan 2009 11:39:46 +0000
Subject: Re: [PEPr] Comment on Networking::Net_OpenSSH
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51511@lists.php.net to get a copy of this message
Luca Corbo a écrit :
You don't have to make system calls to execute remote commands with ssh. You can check-for & use libssh instead. http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/ Works for scp as well.
Hi Kevin, I know about the existence of the ssh2 pecl extension and this package want to be a simple and out of the box alternative to the libssh bind. Some people infact could be not able to compile or install the libssh library (i.e. shared host) or simply don't want to install it. On the other hand it is more simple to have an openssh client configured on your host. By the way the installation on ubuntu env is quite simple but this could not be true on other *nix OS (like Solaris, HP-UX ecc.).
I Luca, I think kevin's remark is more like "you could check the existence of ssh2 ext. and use it if it's available, and if not, default to the system calls", like a "drivers" implementation. -- David

« previous php.pear.dev (#51511) next »