1. 在Linux上:

  # ssh-keygen       ##一定用 id_rsa.pub

  # cat /root/.ssh/id_rsa.pub

2. copy 整个文件内容到剪切板

3. 打开IE登录github, 选择 Your profile

     Git permission denied(public key) 解决方法

4.  选择  Edit Profile  ->  SSH and GPG keys  -> new SSH Key ->  Ctrl+v   将剪切板的内容粘贴进去

5. 保存

6. 回到Linux:

  # ssh -T git@github.com 

  You've successfully authenticated

 

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-10-28
  • 2021-08-24
  • 2021-12-08
相关资源
相似解决方案