[cpp] view plaincopy
 
  1. Permission denied (publickey).  
  2.   
  3. fatal: The remote end hung up unexpectedly  


应该是ssh key过期了吧

 

试着重新创建ssh key,按以下步骤

 

[cpp] view plaincopy
 
  1. ssh-keygen  


注意短横线前后都没有空格

 

接着一切都默认,它会在把ssh key 储存在

 

[cpp] view plaincopy
 
  1. ~/.ssh/id_rsa.pub  


打开这个文件,把里面的所有的内容都拷贝到你的github网站的ssh key里

 

 

[cpp] view plaincopy
 
  1. gedit ~/.ssh/id_rsa.pub  

在github的右上角edit your profile 里找到ssh key,然后add ssh key,把东西拷贝到key就可以了,title随便填。

 

接着就继续你的push吧

相关文章:

  • 2021-05-02
  • 2021-12-03
  • 2021-11-07
  • 2021-07-07
猜你喜欢
  • 2021-08-25
  • 2021-06-17
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-04-12
相关资源
相似解决方案