文件地址 sudo vi /etc/ssh/sshd_config PermitRootLogin:是否允许root用户登录 最后 所有的配置修改之后,都要执行命令 sudo service ssh restart 重启ssh服务