文档
注册

SSH登录时提示无法建立信任关系

问题描述

在PC机中以SSH方式登录到Atlas 200 DK时,提示无信任关系。

在PC机中执行如下命令重新建立信任关系:

ssh-keygen -f "$HOME/.ssh/known_hosts" -R 192.168.1.2

其中192.168.1.2为Atlas 200 DK开发者板的IP地址。

报如下错误:

ECDSA host key for 192.168.1.2 has changed and you have requested strict checking.

解决方法

出现此错误是本地保存的SSH信息已失效导致,所以需要清空当前保存的SSH信息,然后重新建立连接。

  1. 清空PC机中当前用户连接192.168.1.2主机的公钥信息。

    ssh-keygen -R 192.168.1.2

  2. 重新以SSH方式连接Atlas 200 DK开发者板。

    ssh HwHiAiUser@192.168.1.2

    当提示如下信息时,输入yes重新建立SSH连接。

    The authenticity of host '192.168.1.2' can't be established.
    ECDSA key fingerprint is 53:b9:f9:30:67:ec:34:88:e8:bc:2a:a4:6f:3e:97:95.
    Are you sure you want to continue connecting (yes/no)? 
搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词