我们在使用 Ubuntu 18.04.02 LTS 时遇到了一个问题。
我们正在尝试添加域,但无法添加。
Feb 18 09:32:26 nginx sshd[8383]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=::1 user=user17
Feb 18 09:32:26 nginx sshd[8383]: pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=::1 user=user17
Feb 18 09:32:26 nginx sshd[8383]: pam_sss(sshd:account): Access denied for user user17: 4 (System error)
Feb 18 09:32:26 nginx sshd[8383]: Failed password for user17 from ::1 port 55910 ssh2
Feb 18 09:32:26 nginx sshd[8383]: fatal: Access denied for user user17 by PAM account configuration [preauth]
答案1
问题出在 /etc/ssh/sshd_config 中的参数:更改:
UsePAM no
到:
UsePAM yes
和
systemctl 重启 sshd.service