git clone 提示"WARNING: UNPROTECTED PRIVATE KEY FILE!"的解决办法

来源:互联网 发布:linux安装最新wine 编辑:程序博客网 时间:2024/06/03 21:27

git clone git@"*.*.*.*:ku.git"提示:

localhost:testGIT g$ git clone git@*.*.*.*:ku.gitCloning into 'ku'...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0755 for '/Users/g/.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 "/Users/g/.ssh/id_rsa": bad permissionsgit@*.*.*.*'s password: fatal: 'ku.git' does not appear to be a git repositoryfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

解决办法:

(注: Permissions 0644 for '/****'  也是同样的解决办法)

localhost:.ssh g$ chmod -R 700 ~/.ssh


0 0
原创粉丝点击