1 登录SSH 服务器
#切换到root
sudo -i
#修改密码
passwd
2 接着修改SSH配置文件/etc/ssh/sshd_config
#编辑文件
vim /etc/ssh/sshd_config
PermitRootLogin yes //默认为no,需要开启root用户访问改为yes
PasswordAuthentication yes //默认为no,改为yes开启密码登陆
:wq 保存
3.最后重启下服务器/重启服务SSHD
reboot / systemctl restart sshd