enabled sftp private key support (instead of password)

this is the code to make #9182 work
Yes, I had this issue before and I still don't understand that.
On some environments you need to add an explicit `require` to make it work, on others you don't. I haven't figured out what is affecting that.