【配置公钥到开发板】CRITICAL can not establish ssh connection to bpu board. authentication failed!

在使用hb_verifier时遇到SSH连接失败的问题,原因是密码认证未通过。解决方案是生成SSH密钥对,使用ssh-keygen创建公钥和私钥,然后通过ssh-copy-id将公钥复制到远程开发板上,从而实现无密码SSH连接。
摘要由CSDN通过智能技术生成

使用地平线hb_verifier工具时,出现如下报错

...
023-07-20 11:22:18,663 INFO Connected (version 2.0, client OpenSSH_8.2p1)
2023-07-20 11:22:18,776 INFO Authentication (password) failed.
Traceback (most recent call last):
 File "/usr/local/lib/python3.8/dist-packages/paramiko/auth_handler.py", line 259, in wait_for_response
 raise eparamiko.ssh_exception.AuthenticationException: Authentication failed.
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
...
 File "/usr/local/lib/python3.8/dist-packages/paramiko/auth_handler.py", line 259, in wait_for_response
 raise eparamiko.ssh_exception.BadAuthenticationType: Bad authentication type; allowed types: ['publickey', 'password']
2023-07-20 11:22:18,789 CRITICAL can not establish ssh connection to bpu board. authentication failed!

说明正在使用hb_verifier工具,无法连接有密码的开发板。

解决方案

在当前环境中,先使用 ssh-keygen 生成ssh-key,过程中一路回车即可;
然后使用 ssh-copy-id root@10.64.61.203 配置公钥到开发板,IP请填写自己的;
此时就可以使用 hb_verifier 工具验证一致性。

参考链接

https://blog.csdn.net/K346K346/article/details/128178191

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值