To use keyboard interactive authentication, it is necessary to setup authentication to a SSH server.
- Log on to a remote target host as root.
- Open the /etc/ssh/sshd_config file.
- Setup keyboard interactive authentication as follows:
- Set yes to the value of ChallengeResponseAuthentication. (If the line of ChallengeResponseAuthentication is commented out, remove the comment out hash sign (#).)
- Set yes to the value of UsePAM. (If the UsePAM line is commented out, remove the comment out hash sign (#).)
- Run the following command and restart the sshd service. An example command for each supported OS is shown.
systemctl restart sshd
Note: These commands can change depending on the OS version. For details, see the applicable OS manual.