Xshell连接Centos7无法输入密码

  1. 使用命令vi /etc/ssh/sshd_config

  2. 修改文件

  3. 在最后一行找到 PasswordAuthentication 改成yes

  4. 重新运行 systemctl restart sshd.service

  5. Xshell切换 root 用户即可操作 su root

posted @ 2022-08-17 22:12  雨同我  阅读(627)  评论(0编辑  收藏  举报