Installing the SSH2 PHP extension on CentOS is actually pretty
simple. Although it isn’t available as a straight yum install, it boils
down to a few short steps.Firstly, we’re going to install the dependencies:yum install gcc php-devel php-pear libssh2 libssh2-devel
These will allow us to build the SSH2 extension using pecl.pecl install -f ssh2
After running that command, it should stop at a line like:WARNING: channel "pecl.php.net" has...