centos8开启root远程访问权限 打开ssh的配置文件 vim /etc/ssh/sshd_config 修改 PermitRootLogin 为 yes 3. 重新启动ssh服务 systemctl restart sshd 或者 service sshd restart