执行git命令时提示秘钥权限太开放
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0644 for '/Users/cloudyan/.ssh/gitee.com_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 "/Users/cloudyan/.ssh/gitee.com_rsa": bad permissionsgit@gitee.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
这个问题是由于
权限的问题,需要文件设置权限:
chmod 600 ~/.ssh/*
chmod 600 ~/.ssh/gitee.com_rsa
