Add 4 settings for 4 sections respectively in the configuration file of PAM.
[root@priamry01 /]# vi /etc/pam.conf
sshd auth required /usr/lib/security/pam_aix
# Account Management
sshd account required /usr/lib/security/pam_aix
# Password Management
sshd password required /usr/lib/security/pam_aix
# Session Management
sshd session required /usr/lib/security/pam_aix
Change AUTH_TYPE into PAM_AUTH.
[root@priamry01 /]# vi /etc/security/login.cfg
# auth_type = STD_AUTH
auth_type = PAM_AUTH
Make sure password authentication is enabled, that we can still use password to login.
[root@primary01 /]# vi /etc/ssh/sshd_config
Restart SSH service
[root@primary01 /]# stopsrc -s sshd; startsrc -s sshd
0513-044 The sshd Subsystem was requested to stop.
0513-059 The sshd Subsystem has been started. Subsystem PID is 3474038.
We can initiate a new SSH connection to test its function.