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

 

你可能感兴趣的:(ssh,hudson,pecl,休闲,phing)