命令:ls -al ~/.ssh

如果在输出的文件列表中发现id_rsa和id_rsa.pub的存在,证明本地已经存在SSH密钥;

 

命令:cat /Users/电脑用户名/.ssh/id_rsa.pub

复制打印出来的信息,在GitLab或者GitHub的SSH Keys中进行相应设置即可

相关文章:

  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-01-08
  • 2022-01-08
  • 2021-12-19
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-02-18
  • 2022-12-23
  • 2021-12-25
相关资源
相似解决方案