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