git使用中的问题
- 在执行git fetch的时候,出现以下错误:
Bad owner or permissions on /home/haowt/.ssh/config
这个时候,只需要在.ssh目录,执行以下命令行:
sudo chmod 600 config
- 出现如下错误:
The authenticity of host 'gitee.com (116.211.167.14)' can't be established.
在新生成密钥之后,在.ssh文件夹(之前的文章有提到过)中少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,便报了这样的错误,此时选择yes回车之后,便可,同时生成了缺少了的known_hosts文件
- 出现Permissions 0777 for '/home/majia/.ssh/mymayunrsa' are too open错误
Warning: Permanently added the ECDSA host key for IP address '116.211.167.14' to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0777 for '/home/majia/.ssh/mymayunrsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/home/majia/.ssh/mymayunrsa": bad permissions git@gitee.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
解决办法:
sudo chmod 600 文件路径
- 出现Invalid authentication data.connection.contentType must not be null错误
没有解决用私人令牌token登录成功