Sublime Forum

SFTP: how to enable two-factor authentication

#1

Hi,

Recently, the computer clusters I use disable access with a SSH key. Now I have to login with a password. However, it also needs two-factor authentication after I enter my password. The prompt is as follows:

Duo two-factor login for leon
Enter a passcode or select one of the following options:
1. Duo Push to XXX-XXX-3458
2. Phone call to XXX-XXX-3458
3. SMS passcodes to XXX-XXX-3458 (next code starts with: 1)
Passcode or option (1-3): 1
Success. Logging you in...

I always type 1 as it is the best convenient for me. What I need to do next is just to click the confirm button in the Duo Mobile app from my iPhone. Then I can login to the clusters successfully.

Now the question is, in the SFTP plugin, the prompt does not appear after I enter my password. By the way, I comment the “password” and “ssh_key_file” lines in the json configuration file so that I can enter my password manually.

Considering my case, could anyone tell me how I can make the SFTP plugin to detect the prompt and enable the passcode input?

Thanks! I really appreciate it.

0 Likes

#2

same question here

0 Likes