Ubuntu系统开启root登陆权限

1.安装openssh 2.sudo -i切换到root用户 3.修改/etc/ssh/sshd_config文件 PermitRootLogin yes AllowUsers root #网上很多文章都少改了这行 4.重启ssh服务 service ssh restart