如何禁止用户通过 SSH 登录

0 views
Skip to first unread message

gmail

unread,
Sep 5, 2008, 7:35:01 PM9/5/08
to MY google bbs
在  /etc/ssh/sshd_config
添加

AllowUsers root liushiwei


修改用户shell  路径 为 : /sbin/nologin

useradd -s /sbin/nologin,

Reply all
Reply to author
Forward
0 new messages