我以前使用带有登录凭据的珊瑚板,但SSH似乎无法正常工作,因此我从珊瑚上移走了密钥,以便生成新的密钥,现在它不允许我进入板中了。我对此不满意,请回答。这是我的大学项目。如何更改目录中的快捷键?
Waiting for a device...
Connecting to green-horse at 192.168.101.2
Key not present on green-horse -- pushing
Couldn't connect to keymaster on green-horse: [Errno 111] Connection refused.
Did you previously connect from a different machine? If so,
mdt-keymaster will not be running as it only accepts a single key.
You will need to either:
1) Remove the key from /home/mendel/.ssh/authorized_keys on the
device via the serial console
- or -
2) Copy the mdt private key from your home directory on this host
in ~/.config/mdt/keys/mdt.key to the first machine and use
'mdt pushkey mdt.key' to add that key to the device's
authorized_keys file.
Failed to push via keymaster -- will attempt password login as a fallback.
Can't login using default credentials: Bad authentication type; allowed types: ['publickey']
答案 0 :(得分:0)
ssh也应该起作用(这是我所使用的),但是您需要在主机上生成一个密钥,然后将其放入开发板上的~/.ssh/authorized_keys
中,其中可能有多个密钥文件,而mdt必须是其中之一。
要恢复mdt访问,可以在此处检查:https://coral.ai/docs/dev-board/mdt/#recover-mdt-access
要使用ssh进入板,请生成您自己的ssh密钥:
ssh-keygen
您的新密钥将位于~/.ssh/id_rsa.pub
中,您可以将该密钥放在板上以进行ssh。