以root权限执行以下命令 vim /etc/ssh/sshd_config 开启下面2行的命令,并设置为yes
#默认为no,需要开启root用户访问改为yes PermitRootLogin yes #默认为no,改为yes开启密码登陆 PasswordAuthentication yes