git clone WARNING: UNPROTECTED PRIVATE KEY FILE
- Initialized empty Git repository in /home/***/***/
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- Permissions 0644 for '/home/***/.ssh/id_rsa' are too open.
- It is recommended that your private key files are NOT accessible by others.
- This private key will be ignored.
- bad permissions: ignore key: /home/***/.ssh/id_rsa
- git@***'s password:
解决方案:
- chmod 0600 /etc/ssh/*
本文介绍了一种常见的Git操作中遇到的问题:私钥文件权限过宽导致的警告,并提供了具体的解决方案,通过调整私钥文件的权限来避免此类警告。


被折叠的 条评论
为什么被折叠?



