Linux禁用远程root登录

编辑sshd服务的配置文件
vi /etc/ssh/sshd_config
找到下面这行:把值改为 yes(允许 )no(不允许)
PermitRootLogin yes
service sshd restart

猜你喜欢

转载自yizhaorong.iteye.com/blog/1981242