centos7 启用密码访问 fanxl2 2021-12-04 163 阅读1分钟 编辑配置文件 vi /etc/ssh/sshd_config 设置为密码登陆方式 查找 PermitRootLogin yes 删除前面的#注释 查找 PasswordAuthentication no 改为 PasswordAuthentication yes 如果是注释状态,解注 重启ssh服务或重启服务器 service sshd restart