使用ssh连接linux时出现的错误(Permission denied, please try again.)
【代码】使用ssh连接linux时出现的错误(Permission denied, please try again.)
·
1. 错误信息
[09:35:44.900] Permission denied, please try again.
[09:35:44.901] > root@192.168.10.152's password:
[09:35:44.903] Showing password prompt
2. 修复方式
修改 ssh 配置文件
vim /etc/ssh/sshd_config
PermitRootLogin yes
PubkeyAuthentication no
PasswordAuthentication yes
重启 ssh 服务
/etc/init.d/ssh restart
更多推荐
已为社区贡献1条内容
所有评论(0)