错误提示:Key is invalid. You must supply a key in OpenSSH public key format
翻译:密钥无效。必须提供OpenSSH公钥格式的密钥

操作步骤
1.生成公钥
ssh-keygen -t rsa -C "GitHub账号的注册邮箱"
2.进入路径
vim ~/.ssh/id_rsa.pub
3.复制公钥到GitHub设置SSH and GPG keys中的SSH keys

错误原因:格式不正确
解决方法:
第2步使用如下命令后复制
cat ~/.ssh/id_rsa.pub

相关文章:

  • 2022-12-23
  • 2021-09-26
  • 2021-10-21
  • 2022-12-23
  • 2021-07-09
  • 2021-12-22
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案