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

Advertisement

hyoung
Joined:
Posts:
1
Location:
Australia

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum