Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
400 stars 79 forks source link

MFA support (ssh-key + password afterwards (not ssh-key passphrase) ) #293

Open eldabo opened 1 year ago

eldabo commented 1 year ago

Describe the bug This plugin is failing for servers which require multiple authentication factors (ssh-key + password afterwards (not ssh-key passphrase) )

Getting this error: Error: [ip_omitted]: All configured authentication methods failed

To Reproduce Steps to reproduce the behavior:

Desktop (please complete the following information):

**Extension Logs: ... [01-06 09:22:44] [debug] Verified signature [01-06 09:22:44] [debug] Handshake completed [01-06 09:22:44] [debug] Outbound: Sending SERVICE_REQUEST (ssh-userauth) [01-06 09:22:44] [debug] Inbound: Received SERVICE_ACCEPT (ssh-userauth) [01-06 09:22:44] [debug] Outbound: Sending USERAUTH_REQUEST (none) [01-06 09:22:44] [debug] Inbound: Received USERAUTH_BANNER [01-06 09:22:44] [debug] Inbound: Received USERAUTH_FAILURE (publickey) [01-06 09:22:44] [debug] Client: none auth failed [01-06 09:22:44] [debug] Outbound: Sending USERAUTH_REQUEST (password) [01-06 09:22:44] [debug] Inbound: Received USERAUTH_FAILURE (publickey) [01-06 09:22:44] [debug] Client: password auth failed [01-06 09:22:44] [debug] Outbound: Sending USERAUTH_REQUEST (publickey -- check) [01-06 09:22:45] [debug] Inbound: Received USERAUTH_PK_OK [01-06 09:22:45] [debug] Outbound: Sending USERAUTH_REQUEST (publickey) [01-06 09:22:45] [debug] Inbound: Received USERAUTH_FAILURE (password) [01-06 09:22:45] [debug] Client: publickey auth failed [01-06 09:22:45] [debug] Outbound: Sending USERAUTH_REQUEST (keyboard-interactive) [01-06 09:22:45] [debug] Inbound: Received USERAUTH_FAILURE (password) [01-06 09:22:45] [debug] Client: keyboard-interactive auth failed [01-06 09:22:45] [debug] Outbound: Sending DISCONNECT (11) [01-06 09:22:45] [error] Error: [ip_omitted]: All configured authentication methods failed ...

Tried all the possible combinations of config variables to make it work, but it's still failing. However if I try ssh/sftp command directly from powershell it works flawlessly I even tried to specify the same .ssh/config file in vscode-sftp plugin but it still doesn't work.

to-s commented 3 months ago

Any updates here? Faced into some maybe similar issue while using https://github.com/google/google-authenticator-libpam.