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

feat: PreferredAuthentications #189

Merged
merged 5 commits into from
May 31, 2023
Merged

feat: PreferredAuthentications #189

merged 5 commits into from
May 31, 2023

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented May 31, 2023

This adds support for the PreferredAuthentications SSH option.

Wishlist will then try to respect the endpoint's configuration, both for remote and local clients.

Supported methods are: none (implicit), publickey (with and without agents), password and keyboard-interactive.

Default methods are: none,publickey,keyboard-interactive 1

closes #186

Footnotes

  1. password is not the default because the way it works on crypto/ssh: we must know the password before creating the password ssh.AuthMethod, so, if we were to add it as a default, we would have to ask for the password every time, even for endpoints that do not support it

@caarlos0 caarlos0 changed the title feat: Preferred authentications feat: PreferredAuthentications May 31, 2023
@caarlos0 caarlos0 self-assigned this May 31, 2023
@caarlos0 caarlos0 added the enhancement New feature or request label May 31, 2023
@caarlos0 caarlos0 requested a review from aymanbagabas May 31, 2023 17:41
client_auth.go Outdated Show resolved Hide resolved
client_auth.go Outdated Show resolved Hide resolved
@caarlos0 caarlos0 requested a review from aymanbagabas May 31, 2023 19:15
@caarlos0 caarlos0 merged commit be4f5bb into main May 31, 2023
@caarlos0 caarlos0 deleted the preferred-authentications branch May 31, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support different ssh auth methods
2 participants