Dec 28 13:26:15 ebs-47264 sshd[5472]: Accepted password for root from 192.168.2.1 port 6894 ssh2
Dec 28 13:26:15 ebs-47264 sshd[5472]: pam_loginuid(sshd:session): Cannot open /proc/self/loginuid: Read-only file system
Dec 28 13:26:15 ebs-47264 sshd[5472]: pam_loginuid(sshd:session): set_loginuid failed
Dec 28 13:26:15 ebs-47264 sshd[5472]: pam_unix(sshd:session): session opened for user root by (uid=0)
Dec 28 13:26:15 ebs-47264 sshd[5472]: error: PAM: pam_open_session(): Cannot make/remove an entry for the specified session
Dec 28 13:26:15 ebs-47264 sshd[5472]: error: Received disconnect from 192.168.2.1: 0:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726661
https://www.xiaomastack.com/2015/03/03/sshd-break/
解决办法:修改/etc/pam.d/sshd注释掉以下代码
#session required pam_loginuid.so