修改/etc/ssh/sshd_config 中的PermitRootLogin yes
#PermitRootLogin prohibit-password
#PermitEmptyPasswords no
# the setting of "PermitRootLogin without-password".
PermitRootLogin yes
#PermitTTY yes
#PermitUserEnvironment no
#PermitTunnel no
# PermitTTY no
保存后,然后重启ssh server
service sshd restart
root 用户无法登陆
猜你喜欢
转载自blog.csdn.net/tiantao2012/article/details/89103651
今日推荐
周排行