sshping icon indicating copy to clipboard operation
sshping copied to clipboard

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

Open kflu opened this issue 4 years ago • 0 comments

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.

kflu avatar May 28 '22 17:05 kflu