1 - Edit the /etc/ssh2/sshd2_config file and set the following setting:
AuthKbdInt.Required pam
It looks like the following:
*********************************************************
# The legacy-password authentication does not support PAM by default,
# so if PAM authentication is required, please disable legacy-password
# authentication and enable keyboard-interactive by uncommenting the
# following lines:
AllowedAuthentications publickey,keyboard-interactive
AuthKbdInt.Required pam
*********************************************************