centos7 pem登录修改为密码登录

打开配置文件 /etc/ssh/sshd_config (ubuntu 为/etc/ssh/sshd-config):

PermitRootLogin yes
PubkeyAuthentication no (也可用#号注释)
PasswordAuthentication yes

重启sshd服务
service sshd restart
原文地址:https://www.cnblogs.com/ikai/p/7679970.html