enabled sftp private key support (instead of password)

this is the code to make #9182 work
more or less, but its already changed to empty(), have to push it this evening