Skip to content

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

@kflu

Description

@kflu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions