h3imdall / ftp-remote-edit

Edit files on ftp servers with Atom editor and without a workspace.
MIT License
178 stars 26 forks source link

How to setup for multi factor authentication #408

Open bhache opened 3 years ago

bhache commented 3 years ago

I am trying to connect to a remote server with multi factor authentication. I tried all the available logon types and none of them worked. I keep getting the following error.

All configured authentication methods failed

Please let me know how I would be able to do it. Thank you.

bliutwo commented 3 years ago

Hi, I'm having a similar issue after my work decided to add 2-factor authentication. I'm going to see if I can implement this and then submit a pull request.

bliutwo commented 3 years ago

Apparently, certain vscode extensions have already implemented this: https://github.com/liximomo/vscode-sftp/issues/119

mallorymaynes commented 2 years ago

Hello, has anyone figured this out yet? My institution also just implemented 2FA and I am unable to connect/reconfigure setting appropriately. Thanks for any help!

bliutwo commented 2 years ago

Hello, has anyone figured this out yet? My institution also just implemented 2FA and I am unable to connect/reconfigure setting appropriately. Thanks for any help!

Hi @mallorymaynes, I personally have just moved onto using Visual Studio Code's Remote - SSH extension. Maybe someday someone extremely passionate about Atom Editor will implement this functionality. In the meantime, I'll be using VSCode to get my work done.

jeffknerr commented 2 years ago

I have this working with duo. On the server I am connecting to, the duo config has to automatically push the notification (i.e., it can't display a menu of options to the user -- autopush=yes if you are using pam_duo). For the ftp-remote-edit server setting I had to use Username/Prompt for password. Now when I try to open a remote edit session it prompts for my password, then I get the duo 2fa notification on my phone, then it logs me in.