设置ssh白名单登陆
vim /etc/pam.d/sshd
auth required pam_listfile.so item=user sense=allow file=/etc/sshusers onerr=fail
把需要登录的账号添加到 /etc/sshusers文件中
转载于:https://blog.51cto.com/eric1/1854638
设置ssh白名单登陆
vim /etc/pam.d/sshd
auth required pam_listfile.so item=user sense=allow file=/etc/sshusers onerr=fail
把需要登录的账号添加到 /etc/sshusers文件中
转载于:https://blog.51cto.com/eric1/1854638