PHPloy icon indicating copy to clipboard operation
PHPloy copied to clipboard

Private key with password

Open systonic opened this issue 6 years ago • 0 comments

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 ?

systonic avatar Mar 15 '18 12:03 systonic