CentOS SSH密钥登陆改为密码登陆
本地连接宿主机,下载数据文件时,报无秘钥:通过如下设置,密码登录搞定:
1.vi /etc/ssh/sshd_config
2.设置为密码登陆方式
查找
PermitRootLogin yes
删除前面的#注释
查找
PasswordAuthentication no
改为
PasswordAuthentication yes
3.重启ssh服务或重启服务器
service sshd restart
机房一角:拍摄于 2020-11-04 02:40