PHP: to use scptask, you need to install the SSH extension.
生活随笔
收集整理的這篇文章主要介紹了
PHP: to use scptask, you need to install the SSH extension.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?pecl install -f ssh2
php -m |grep ssh2
?
顯示ssh2則表明 php已經加載ssh;
否則請檢查路徑(ssh2.so放在php安裝目錄的extensions下;php.ini中extension路徑應指對地方。)
再執行phing去deploy,發現沒有密碼認證
Could not authenticate connection!
?
/etc/ssh/sshd_config:
PasswordAuthentication yes
然后
/etc/init.d/ssh restart
?
轉載于:https://blog.51cto.com/233592/495361
總結
以上是生活随笔為你收集整理的PHP: to use scptask, you need to install the SSH extension.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在没有安装有mvc3的主机上部署asp.
- 下一篇: php date时间本地化问题