执行git命令时提示秘钥权限太开放Permissions 0644 for '/Users/liuml/.ssh/id_rsa_tz' are too open.

报错如下

Update failed
Warning: Permanently added 'gitee.com,***.***.***.**' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/liuml/.ssh/id_rsa_tz' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/liuml/.ssh/id_rsa_tz": bad permissions
[email protected]: Permission denied (publickey).
Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

可以执行以下命令将秘钥文件的权限设置为700就好了

> cd ~/.ssh
> sudo chmod -R 700 config id_rsa_*

执行git命令时提示秘钥权限太开放‘Permissions 0644 for '/Users/liuml/.ssh/id_rsa_tz' are too open.’

相关文章:

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