sudo -i
passwd
vi /etc/ssh/sshd_config
i
PermitRootLogin yes //默认为no,须要开启root用户访问改成yes PasswordAuthentication yes //默认为no,改成yes开启密码登录
:wq
reboot