允许root用户登录ssh(Ubuntu) 编辑ssh的配置文件,命令:vim /etc/ssh/sshd_config 在Authentication部分,注释掉“PermitRootLogin without-password” 在Authentication部分,添加“PermitRootLogin yes” 重新启动ssh服务,命令:sudo service ssh restart