解决使用 ssh 密码登陆不了远程服务器问题

1、打开 /etc/ssh/sshd_config

  • 将 PremitRootLogin no 中的 no 改为 yes
  • 将 PasswordAuthentication no 中的 no 改为 yes

2、重启 ssh 服务

sudo systemctl restart sshd.service

猜你喜欢

转载自blog.csdn.net/z_ruitao/article/details/89787980