Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to enable 2FA on SSH login, then you need to enable challenge/response and also enable keyboard-interactive.

For Ubuntu 18 & 20, and

...

CentOS

Code Block
languagebash
$ sudo vi /etc/ssh/sshd_config

ChallengeResponseAuthentication yes
AuthenticationMethods keyboard-interactive

...