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
2-Factor auth does not work #412
Comments
Kinda sorta related to @owais' ticket on Fabric's tracker, fabric/fabric#1202 I reckon getting Fabric some tests that pull Paramiko's 2FA strings could be a good way to enforce that this part of the functionality works. Not sure if that'll happen before or after Fab 2.0. As I mentioned in that ticket, paramiko definitely has "support" for 2FA in its auth handling subroutines, but whether they function at this point in time seems questionable. @iwais do you have an example of exactly how you've got google auth set up? It's not a tech I have personally used before. |
You need to add
and you need to remove Then run |
Thanks! I don't know when I will have time to prioritize this (it's up there but not at the top of the list) but this way when I (or anybody else) next looks at it we've got what we need to confirm & test. |
The problem here also from what I found is that paramiko was not properly checking the allowed two factor auth methods, try my fork and lemme know if this helps Fork: |
@perryjrandall Your changes do work for me when using duo for 2 factor authentication at work and MySQL Workbench's SSH tunnel feature to connect to MySQL servers. 🍺 What are the changes we can make Perry's changes production ready and merge them? I'd be willing to do some of the work if necessary. |
Rolling this into #467 |
2-Factor auth when using SSH + google authenticator lib does not work with paramiko. Password logins are disabled.
keyboard-interactive
is enabled on the server in addition to secret key auth but paramiko does not ask for authorization codeThe text was updated successfully, but these errors were encountered: