Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Support two-factor authentication #17

Open
XUKEREN opened this issue May 23, 2020 · 1 comment
Open

Support two-factor authentication #17

XUKEREN opened this issue May 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@XUKEREN
Copy link

XUKEREN commented May 23, 2020

I keep seeing these error messages using either a private key or an agent. Wasn't sure where I did wrong. Any advice would be much appreciated!!

I am connecting SSH remote host with two factor authentication and password authentication.

Remote X11 Output:
Setting up display for remote "ssh-remote".
Connecting to SSH. See Remote X11 (SSH) logs for more details.
Error: All configured authentication methods failed

Remote X11 (SSH) Output:
DEBUG: Outgoing: Writing USERAUTH_REQUEST (publickey)
DEBUG: Parser: IN_PACKET
DEBUG: Parser: Decrypting
DEBUG: Parser: pktLen:44,padLen:8,remainLen:32
DEBUG: Parser: IN_PACKETDATA
DEBUG: Parser: Decrypting
DEBUG: Parser: HMAC size:32
DEBUG: Parser: IN_PACKETDATAVERIFY
DEBUG: Parser: Verifying MAC
DEBUG: Parser: IN_PACKETDATAVERIFY (Valid HMAC)
DEBUG: Parser: IN_PACKETDATAAFTER, packet: USERAUTH_FAILURE
DEBUG: Client: Agent key #1 failed
DEBUG: Agent: No more keys left to try
DEBUG: Client: agent auth failed
DEBUG: Outgoing: Writing DISCONNECT (BY_APPLICATION)
Error: All configured authentication methods failed

@joelspadin
Copy link
Owner

I don't think I currently support two-factor authentication. I'd need to handle the authentication key prompt.

For my own reference, mscdex/ssh2#175 has some examples for handling the prompt.

@joelspadin joelspadin added the enhancement New feature or request label May 23, 2020
@joelspadin joelspadin changed the title All configured authentication methods failed Support two-factor authentication May 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants