https://blog.csdn.net/awp0011/article/details/73368481

 

第一次使用github.com
在本地 执行 git clone git@github.com:xxxxx/xxxxx.git

异常信息:

Permission denied (publickey).
fatal: Could not read from remote repository.

原因是SSH 登录时没有加密所需的秘钥
所以 我们 需要生成密码

ssh-keygen -t rsa
1
在~/.ssh/ 有三个文件

id_rsa
id_rsa.pub
known_hosts

将 id_rsa.pub 内容复制到 github的 https://github.com/settings/keys
add SSH key

然后你再 git clone
————————————————

相关文章:

  • 2022-12-23
  • 2021-05-10
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-08-28
相关资源
相似解决方案