lialong1st

使用 git 时出现下面的问题,原因是 git 公钥的权限被修改了。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for \'/home/xxx/.ssh/id_rsa\' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /home/xxx/.ssh/id_rsa

重新生成秘钥比较麻烦,可以修改公钥的权限即可:

chmod 600 /home/xxx/.ssh/id_rsa

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-09-16
  • 2022-01-03
  • 2021-06-09
猜你喜欢
  • 2021-09-08
  • 2021-09-08
  • 2021-11-10
  • 2022-02-14
  • 2021-09-20
  • 2021-12-16
  • 2021-06-11
相关资源
相似解决方案