PHPloy
PHPloy copied to clipboard
Private key with password
The getPrivateKey method of SftpAdapter class use the password to load the private key. But in the prepareServers method of PHPloy class you don't ask for password if private key is provided.
When I provide a password in phploy.ini it works, but when I do not provide a password it is not asked.
Replace at line 494 :
if ($options['pass'] === '' && $options['privkey'] === '') {
by
if ($options['pass'] === '') {
and now the password is asked.
Why do not you use the ability of SftpAdapter to use an agent ?