-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosts with Multi-Factor auth fail #20
Comments
Warpgate doesn't support keyboard-interactive auth on the targets or passing the interactive prompts to the client by design - my plan is to add 2FA support to WG directly, so that admins only need to handle 2FA config in one place. The second error ( |
I think I'm experiencing the same issue, I have added a password, public key and otp to a user. I'm not sure how to fix this? When removing the password from my config, it still asks for one. |
@bram-pkg does it work if you only set |
It does not, my config looks like this: users:
# default admin...
- username: bram
credentials:
#- type: password
# hash: "$argon2id$v.........."
- type: publickey
key: ssh-rsa blablablabla
- type: otp
key: long-otp-key
require: [publickey]
roles:
- "backups" And it still asks for a password. Note that the password is commented out right now. Running
|
Hope that's enough information 😅 |
This seems to be the problem:
Could you generate a new private key with the exact same In the meanwhile, a workaround could be to generate and use a separate Ed25519 key. |
I will try an Ed25519 key. I will send you an RSA key in the format I used for this. |
Sent them to you in an email. |
I generated an SSH key with the following command now: ssh-keygen -t ed25519 Added it to Warpgate, and now it doesn't ask for a password anymore. After added Apart from the small RSA key issue, ofcourse. Thanks for your help! |
Correction, the connection freezes after entering my OTP code 😅
And then it hangs. I'm forced to shut down my terminal and start a new session, Ctrl+C doesn't disconnect. |
Could you please run Warpgate as |
Sure thing, give me a minute. |
Could I email the log to you? It's quite big. |
Sure - same address |
I sent them to you, hope I named the files in a clear enough way. |
Released in 0.2.4: https://github.com/warp-tech/warpgate/releases/tag/v0.2.4 |
I actually think the issues of @bram-pkg and @heywoodlh are actually two different issues. I'm running in to the same problem as heywoodlh. The problem is when a target server has 2fa optionally enabled (for example like so: https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-ubuntu-20-04), as even when a user (such as the one used by warpgate) does not have otp configured the sshd will still force a In the example below I directly connected to the target using my own key, and not warpgate. This shows the sshd offering
Compared to a target that does not have otp optionally configured at all:
@Eugeny would it be possible to implement something in the SSH client to just silently accept this (maybe with a 1 or 2 second timeout)? This way warpgate and OTP can be used side by side in different users on a target. |
I have one host using Duo's PAM module to provide multi factor authentication and another using Jumpcloud for the same purpose. Through Warpgate it fails despite having the
~/.ssh/authorized_keys
file configured properly.Here's what the entire workflow looks like on the host using Duo:
And here's what it looks like for the host with Jumpcloud (I changed the hostname in this output):
As a sanity check, it seems to work just fine with my other machines not using multi-factor auth:
The text was updated successfully, but these errors were encountered: