Two Factor Authentication – Key and Password – Working but will it be supported in future versions?
I'm working on scripting to an SFTP server that requires 2 factor authentication:
From what I can see, officially two factor authentication isn't supported in scripting, but testing actually shows it to work. I have a server that requires both key and password authentication.
The following command functions (but it supposedly shouldn't) – couldn't find this in documentation.
Is this functionality going to be continued in future releases or will it possibly be removed?
Logs for further info:
From what I can see, officially two factor authentication isn't supported in scripting, but testing actually shows it to work. I have a server that requires both key and password authentication.
The following command functions (but it supposedly shouldn't) – couldn't find this in documentation.
Open sftp://username:password@sftphost.com/ -hostkey="ssh-rsa 1024 blah blah" -PrivateKey="C:\Temp\Test.ppk" -passphrase="supersecurepassword" -rawsettings AuthKI=1
Logs for further info:
Server offered these authentication methods: publickey Offered public key Offer of public key accepted Authenticating with public key "rsa-key-XXXXX" Prompt (passphrase, "SSH key passphrase", <no instructions>, "Passphrase for key "rsa-key-XXXXX": ") Using configured passphrase. Sent public key signature Further authentication required Further authentication required Server offered these authentication methods: password Prompt (password, "SSH password", <no instructions>, "&Password: ") Using stored password. Sent password Access granted Opened main channel