首先查看SSH登陸的認證文件/etc/pam.d/sshd,內容爲
auth required pam_listfile.so item=user sense=allow file=/etc/ssh/sshusers onerr=succeed
編輯 /etc/ssh/sshusers ,添加賬戶可以通過SSH登陸
首先查看SSH登陸的認證文件/etc/pam.d/sshd,內容爲
auth required pam_listfile.so item=user sense=allow file=/etc/ssh/sshusers onerr=succeed
編輯 /etc/ssh/sshusers ,添加賬戶可以通過SSH登陸