vscode-sftp
vscode-sftp copied to clipboard
MFA support (ssh-key + password afterwards (not ssh-key passphrase) )
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:
- perform any action which requires to establish SFTP connection to server (for example hit "Upload")
Desktop (please complete the following information):
- OS: Win10
- VSCode Version 1.74
- Extension Version - newest one
**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.
Any updates here? Faced into some maybe similar issue while using https://github.com/google/google-authenticator-libpam.