Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
setup_2fa_with_google_authenticator_for_ssh [22.07.2021 22:43] – created Pascal Suter | setup_2fa_with_google_authenticator_for_ssh [16.12.2022 09:43] (current) – Pascal Suter | ||
---|---|---|---|
Line 20: | Line 20: | ||
Users that haven' | Users that haven' | ||
+ | |||
+ | ===== ssh key authentication ===== | ||
+ | now if you use ssh key authentication you won't be asked for your second factor anymore. if you don't like that, you can do the following to force a three factor authentication, | ||
+ | |||
+ | make sure these options are sett as follows in your ''/ | ||
+ | < | ||
+ | ChallengeResponseAuthentication yes | ||
+ | UsePAM yes | ||
+ | AuthenticationMethods publickey, | ||
+ | PasswordAuthentication no | ||
+ | </ | ||
+ | |||
+ | restart sshd, and **don' | ||