Apologies if I have missed this in the documentation but is it possible to connect to an SFTP server with a private key and a password (not a passphrase for my private key).
The examples show username/password, username/key and username/key/key passphrase authentication types.
When connecting via the command line I would get this prompt for my password...
user@x.x.x.x's password:
Hopefully this library can handle this?
Otherwise are there any other PHP based solutions that might support username/key and server password authentication? I'm quite flexible here and can install modules if need be.
EDIT
Thanks for the help so far...
I had tried what you mentioned Neubert but this didn't seem to work.
And to verify what is necessary to connect to the server I tested this on the command line.
sftp key user@ip
- Prompted for password as expected
sftp user@ip
- Prompted for password but when entered correctly told I am "authenticated with partial success".
I think the permission on directories and keys should be fine if I can get in using key and then password.
I am starting to think this library doesn't support what I need.