Phpseclib vs libssh2

In one of my projects, I am going to connect to a large number of servers remotely via SSH using PHP. There are two solutions for this: phpseclib and ssh2 PECL extension for PHP based on libssh2 library.

So can anyone compare both and mention their pros and cons, etc.?

+2


source to share


1 answer


phpseclib has almost zero server requirements. As long as the server supports PHP, it will work. In contrast, libssh2 must be installed on the server for it to work, and many servers did not install it. If it's installed, you don't need to include any additional files (whereas with phpseclib, you have to include them), but that's a big deal if.

Overall, I think the phpseclib OOP API is much more intuitive and works much more frequently.



Here's a website that criticizes them:

http://drupal.org/node/671702

+8


source







All Articles