Centos密钥登陆还原成使用密码登陆
时间:2018-12-16 来源:未知 投稿:admin 点击:次
vi /etc/ssh/sshd_config //修改ssh配置文件:
PermitRootLogin yes
PasswordAuthentication yes
:wq //保存退出
重启ssh服务或重启服务器:
systemctl restart sshd //centos7使用这条命令
/etc/init.d/sshd restart //centos6使用这条命令
/etc/init.d/sshd restart //centos6使用这条命令
如果您的问题仍未解决,还可以加入服务器在线技术交流QQ群:8017413寻求帮助。
相关内容