使用地平线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