xshell,winscp,xftp无法用root用户登录

 

1 编辑vim /etc/ssh/sshd_config文件

   把PermitRootLogin Prohibit-password 添加#注释掉

   新添加:PermitRootLogin yes

   更改PermitEmptyPasswords为 no

 

2 然后重启ssh服务

   service ssh restart(或者执行:/etc/init.d/ssh restart)

 

3.重启服务器

   shutdown -r now

来源:https://blog.csdn.net/zyx_ly/article/details/84957298

posted @ 2021-04-12 10:59  小鲨鱼2018  阅读(377)  评论(0编辑  收藏  举报