Ubuntu系统,无法使用root帐号通过ssh登录,只能先通过administrator登录系统,然后配置root帐号,然后登录。
执行 sudo apt-get install ssh
然后打开ssh的配置文件 vi /etc/ssh/sshd_config
将PermitRootLogin without-password注释掉
添加 PermitRootLogin yes
重启ssh服务:
Ubuntu系统,无法使用root帐号通过ssh登录,只能先通过administrator登录系统,然后配置root帐号,然后登录。
执行 sudo apt-get install ssh
然后打开ssh的配置文件 vi /etc/ssh/sshd_config
将PermitRootLogin without-password注释掉
添加 PermitRootLogin yes
重启ssh服务: