...
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 | ||
---|---|---|
| ||
$ sudo vi /etc/ssh/sshd_config ChallengeResponseAuthentication yes AuthenticationMethods keyboard-interactive |
...