Unix下如何限制身份登录 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

    第一种方法: 在sshd_config中设置AllowUsers,格式如 AllowUsers a b c 重启sshd服务,则只有a/b/c3个用户可以登陆 第二种方法: /etc/pam.d/sshd文件第一行加入 auth required pam_listfile.so item=user sense=allow file=/etc/sshusers nerr=fail 然后

最新文章