问题:

Initialized empty Git repository in /data1/mouxuan/fastsocket-private/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly


解决步骤:


1、cd ~/.ssh

2、ssh-keygen -t rsa -C you@Email.com


centos: git clone提示Permission denied publickey 问题


遇到 提示一路 回车

遇到有Y 输入Y


3、ssh-add id_rsa

 若出现: Could not open a connection to your authenticationagent.

输入:ssh-agent bash  在使用 ssh-add id_rsa

centos: git clone提示Permission denied publickey 问题


4、登录github.com --AccountSetting--ssh  点击Add

将id_rsa.pub 文件里的 内容加入进去  


最后git clone 成功 (with ssh)

git clone with http 失败 


參考:http://bbs.gsmcn.cn/thread-2474-1-1.html  


相关文章:

  • 2021-07-30
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-09-02
猜你喜欢
  • 2021-04-01
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案