Archived Forum Post

Index of archived forum posts


sftp authentication with private key *and* password

Nov 25 '12 at 09:11

The server I am connecting to requires private key authentication as well as a password (and PPK file is password protected as well). I know I can use ' $sftp->AuthenticatePk("myLogin",$key) ' to authenticate using a private key, or I can use ' $sftp->AuthenticatePw($username, $password) ' to connect using a user ID and password. How do I combine the two?


There is an AuthenticatePwPk method.