设置服务器账号是否ssh登录
修改/etc/ssh/sshd_config两项参数
PasswordAuthentication no 修改为: PasswordAuthentication yes
PermitRootLogin no 修改为:PermitRootLogin yes //找不到这项就在文件尾部加上去
$ sudo systemctl restart sshd OR $ sudo service sshd restart
systemctl restart sshd