Raspberry Pi ssh上的Ubuntu Core失败了

我试图首次在Raspberry Pi 3上安装和使用Ubuntu Core发行版。

我的SD卡格式化为MS_DOS FAT, ISO闪存到卡上。

我已经完成了将Pi连接到显示器和键盘并提供我的Ubuntu One电子邮件地址的过程。 在该过程结束时,监视器提供连接到Pi的ssh详细信息。

我还生成了一个id_rsa.pub密钥并将其提供给我的Ubuntu One ssh密钥区域。

完成所有这些,当我尝试ssh到Pi时,我得到2条消息之一。

我收到的第一条消息是:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:QrfHNJLLJ4wjeQAPoVK+W0lhI7pfww3liCVI3/IoJCk. Please contact your system administrator. Add correct host key in /Users/userx/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/userx/.ssh/known_hosts:29 ECDSA host key for 192.168.0.14 has changed and you have requested strict checking. Host key verification failed. 

过了一会儿,它没有报告上面的消息,而是请求了一个密码 – 根据定义,Ubuntu Core不应该使用。

我需要帮助。

删除〜/ .ssh / known_hosts下的已知主机,然后尝试重新连接。 您应该在启动Ubuntu Core配置之前上载公钥。

正如您在此消息中所读到的那样,您已将此主机保存在know_hosts文件中。 所以现在,你应该删除它:

 ssh-keygen -R IP_of_your_RPI 

然后尝试ssh到你的RPI。 但请记住,你不可能在root帐户上ssh他们。 它取决于ssh守护程序配置:/ etc / sshd_config文件中的“PermitRootLogin”选项。