centos7 pem登录修改为密码登录

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

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

重启sshd服务
service sshd restart
posted @ 2017-10-17 09:19  青柚  阅读(703)  评论(0编辑  收藏  举报