centos 9 无法使用密码进行ssh登录
vi /etc/sshd/sshd-config
# 找到其中的如下一行,将前边的#符号去掉,并修改no为yes
# PermitRootLogin no
# 改成:
PermitRootLogin yes
重启ssh服务
systemctl restart sshd
vi /etc/sshd/sshd-config
# 找到其中的如下一行,将前边的#符号去掉,并修改no为yes
# PermitRootLogin no
# 改成:
PermitRootLogin yes
重启ssh服务
systemctl restart sshd
