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

 

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