Ubuntu的root用户通过SSH登录的解决方法

Ubuntu系统,无法使用root帐号通过ssh登录,只能先通过administrator登录系统,然后配置root帐号,然后登录。

执行 sudo apt-get install ssh

然后打开ssh的配置文件 vi /etc/ssh/sshd_config  

将PermitRootLogin without-password注释掉

添加 PermitRootLogin yes

重启ssh服务: 

 

猜你喜欢

转载自www.cnblogs.com/coxiseed/p/9244563.html