git 克隆拉取代码出现私钥权限问题。

问题反馈:

root@dd:~/android/boost-1.74-for-android-r20b# git clone   https://github.com/liulilittle/boost-1.74-for-android-r20b.git


Cloning into 'boost-1.74-for-android-r20b'... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0777 for '/root/.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. Load key "/root/.ssh/id_rsa": bad permissions [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

修改权限:

chmod 600 /root/.ssh/id_rsa*

你可能感兴趣的:(Extension,git)