Linux限制/允许某些用户登录SSH
https://blog.csdn.net/a898712940/article/details/89489069
允许指定用户
在/etc/ssh/sshd_config配置文件中设置AllowUsers选项
1 | AllowUsers aliyun testxxxx |
拒绝指定用户
1 | DenyUsers testxxxx aliyun |
重启SSH服务
sshd restart
https://blog.csdn.net/a898712940/article/details/89489069
在/etc/ssh/sshd_config配置文件中设置AllowUsers选项
1 | AllowUsers aliyun testxxxx |
1 | DenyUsers testxxxx aliyun |
sshd restart