Skip to content
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

Ssh 2 fa support #973

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open

Conversation

julienfr112
Copy link

@julienfr112 julienfr112 commented Apr 5, 2023

The server i'm working with has a bastion that need a yubikey old "One Time Password" with a ssh interactive session. It does not work out of box with pyinfra, so I propose this pull requests.

It's a fallback on connect, when there is a BadAuthenticationType, in my case when the authenfication is interactive. In this case, the solution I found is working with Transport, doing first an "auth_interactive_dumb", that just link the session and stdin stdout, and then a auth_publikey. I've tested it and it work perfectly in my case, without breaking anything. I'm not sure though how generic is my use case.

Thanks again for you good work on pyinfra, that's amazing stuff.

@julienfr112 julienfr112 closed this Apr 5, 2023
@julienfr112 julienfr112 reopened this Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant