1

最近我根据珊瑚 AI 官方文档用 mendel-enterprise-day-13 更新并刷新了开发板。之后,当我想使用mdt shellor从我的桌面 Ubuntu 19.04 连接时mdt shell <ip>,它不起作用并给出如下错误消息。mdt 外壳不起作用

在 192.168.101.2 连接到 192.168.101.2 192.168.101.2 上不存在密钥 -- 推送

看起来您正在尝试连接到未通过 USB 连接到工作站且没有此 MDT 生成的 SSH 密钥的设备。要与您连接,mdt shell您需要先仅通过 USB 连接到您的设备。

怯懦地拒绝尝试将钥匙推到公共机器上。在 192.168.101.2 连接到 192.168.101.2 192.168.101.2 上不存在密钥 -- 推送

看起来您正在尝试连接到未通过 USB 连接到工作站且没有此 MDT 生成的 SSH 密钥的设备。要与您连接,mdt shell您需要先仅通过 USB 连接到您的设备。

怯懦地拒绝尝试将钥匙推到公共机器上。

即使我的珊瑚板通过 USB C 和 USB A 连接,它也看不到 USB 已连接。我从板终端运行 nmtui 以查看所有活动连接,它显示板仅连接 USB0 和 USB1 并且没有互联网(请参阅下面的结果): 活动连接

我也想分享我在跑步后发现的一件奇怪的事情dmesg | grep ttyUSB。它显示了几个故障和断开连接。 USB

[  371.021431] usb 3-1.4: cp210x converter now attached to ttyUSB0
[  371.023282] usb 3-1.4: cp210x converter now attached to ttyUSB1
[ 3326.853419] cp210x ttyUSB0: failed set request 0x12 status: -19
[ 3326.853423] cp210x ttyUSB0: failed set request 0x0 status: -19
[ 3326.853563] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 3326.853728] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[ 3332.837337] usb 3-1.4: cp210x converter now attached to ttyUSB0
[ 3332.839815] usb 3-1.4: cp210x converter now attached to ttyUSB1
[ 4001.567889] cp210x ttyUSB0: failed set request 0x12 status: -19
[ 4001.567897] cp210x ttyUSB0: failed set request 0x0 status: -19
[ 4001.568103] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 4001.572366] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[ 4013.647342] usb 3-1.4: cp210x converter now attached to ttyUSB0
[ 4013.650435] usb 3-1.4: cp210x converter now attached to ttyUSB1

请建议我出了什么问题。

4

2 回答 2

0

我打这个也升级到“天”。有几种方法可以给这只猫剥皮,但使用 mdt 的诀窍是将生成的私钥放在 ~/.config/mdt/keys/mdt.key 中,它必须是 mdt 硬编码的位置以查找它。

因此,对于 mdt 和 ssh 访问,我这样做了:

1) 使用 ssh-keygen 创建私有和发布密钥文件。

2) 将 pubkey 文件附加(或复制)到目标 /home/mendel/.ssh/authorized_keys

3)将私钥文件复制到~/.config/mdt/keys/mdt.key

4)添加到本地 .ssh/config 到这样的东西:

Host tpu
         IdentityFile ~/.config/mdt/keys/mdt.key
         IdentitiesOnly=yes
         User mendel
于 2019-12-16T18:13:22.713 回答
0

I could connect via mendel development tool to coral dev board from freshly installed ubuntu. Also the ip changed from 192.168.101.2 to 192.168.100.2 on running mdt shell.

procedure:

  1. Install mendel development tool on linux host PC
  2. Connect coral dev board via serial port, power on and login to board
  3. run mdt devices on host PC to see if dev board is already connected (should output 192.168.100.2)4. shell from host PC terminal
  4. run mdt shell

If coral board needs to be connected to another host PC, only mdt shell will give some errors, I believe it's because it cannot append keys to authorized_keys folder.

  1. One option is to login to dev board via serial port, do cd ~/.ssh/ and remove authorized keys file by rm authorized_keys, then run mdt shell from host PC terminal
  2. Or manually generate ssh private-public keys, replace or append(did not test) content of authorized_keys file by the generated public key from host PC (should be in ~/.ssh/id_rsa.pub file in host PC).
于 2020-02-07T15:50:17.870 回答