Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

@chrismb: Yes. That's what this thread is about after all.
chrismb

Is a password and key two-factor authentication also supported when using scripting in WinSCP?
martin

Re: Two Factor Authentication - Key and Password - Working but will it be supported in future versions?

It is not true that two-factor authentication is not supported in general. It depends on the factors.

A password and key two-factor authentication is supported.
hyoung

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.
Open sftp://username:password@sftphost.com/ -hostkey="ssh-rsa 1024 blah blah" -PrivateKey="C:\Temp\Test.ppk" -passphrase="supersecurepassword" -rawsettings AuthKI=1

Is this functionality going to be continued in future releases or will it possibly be removed?

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