1、vim /etc/ssh/sshd_config 保证下面两个配置是如下设置
#允许使用密码登录
PasswordAuthentication yes
#允许root认证登录
PermitRootLogin yes
2、重启sshd
systemctl restart sshd
3、修改密码
passwd
这样就行了
1、vim /etc/ssh/sshd_config 保证下面两个配置是如下设置
#允许使用密码登录
PasswordAuthentication yes
#允许root认证登录
PermitRootLogin yes
2、重启sshd
systemctl restart sshd
3、修改密码
passwd
这样就行了