解决Xshell无法使用root账号直接连接ubuntu的问题

1. 修改/etc/ssh/sshd_config文件,把PermitRootLogin Prohibit-password 添加#注释掉

2、新添加:PermitRootLogin yes2. 重启ssh服务/etc/init.d/ssh restart;

亲测成功。。。

猜你喜欢

转载自blog.csdn.net/qq_40667143/article/details/83511864