执行git命令时提示秘钥权限太开放‘Permissions 0644 for '/Users/liuml/.ssh/id_rsa_tz' are too open.’
执行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_*