允许root登录 vim /etc/ssh/sshd_config 将 PermitRootLogin yes 允许不输入密码登录 将PermitRootLogin prohibit-password RHEL/CentOS系统 service sshd restart Ubuntu系统 service ssh restart debian系统 /etc/init.d/ssh restart 注意root密码是否为空