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

Work with ssh remote host that requires two-factor authentication? #35

Open
kflu opened this issue May 28, 2022 · 0 comments
Open

Work with ssh remote host that requires two-factor authentication? #35

kflu opened this issue May 28, 2022 · 0 comments

Comments

@kflu
Copy link

kflu commented May 28, 2022

I have a remote ssh host that requires two factor authentication. Everytime when I ssh <user>@remote. i got a prompt for me to enter yubikey codes (e.g., tap on the yubikey. It inputs a random string to the prompt).

When I use sshping user@remote, I got a prompt "Enter password for user ", which is wrong, because I use public key authentication (with two factor auth). If I did enter my password, or tap yubikey at the point, sshping says

*** Cannot authenticate user
*** Cannot establish ssh session

And exited with exit code 255.

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

No branches or pull requests

1 participant