首页 > 其他 > 详细

git 时 出现 Permission denied (publickey).

时间:2019-08-18 14:03:06      阅读:86      评论:0      收藏:0      [点我收藏+]

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
————————————————

git 时 出现 Permission denied (publickey).

原文:https://www.cnblogs.com/654321cc/p/11371742.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!