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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章