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