服务器在线 - 服务器软件 - 网站地图 服务器在线,专注于服务器技术!

当前位置:主页 > 服务器系统 > CentOS > 正文

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使用这条命令

 

如果您的问题仍未解决,还可以加入服务器在线技术交流QQ群:8017413寻求帮助。


相关内容
最新热点内容