默认情况下是无法连接到root账户的。需要修改sshd_config文件放开这项配置#PermitRootLogin prohibit-password修改为PermitRootLogin yes重启下ssh server即可