sudo apt-get install libssh2-1-dev sudo apt-get install php-ssh2 测试新安装的PHP的SSH2扩展运行 php -m |grep ssh2 重启 sudo service apache2 restart