git使用中的问题

git使用中的问题

  1. 在执行git fetch的时候,出现以下错误:
Bad owner or permissions on /home/haowt/.ssh/config

​ 这个时候,只需要在.ssh目录,执行以下命令行:

sudo chmod 600 config
  1. 出现如下错误:
The authenticity of host 'gitee.com (116.211.167.14)' can't be established.

在新生成密钥之后,在.ssh文件夹(之前的文章有提到过)中少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,便报了这样的错误,此时选择yes回车之后,便可,同时生成了缺少了的known_hosts文件

  1. 出现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 文件路径
  1. 出现Invalid authentication data.connection.contentType must not be null错误

    没有解决用私人令牌token登录成功

附件列表

     

    posted @   编程未来  阅读(207)  评论(0编辑  收藏  举报
    编辑推荐:
    · 探究高空视频全景AR技术的实现原理
    · 理解Rust引用及其生命周期标识(上)
    · 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
    · 没有源码,如何修改代码逻辑?
    · 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
    阅读排行:
    · 分享4款.NET开源、免费、实用的商城系统
    · 全程不用写代码,我用AI程序员写了一个飞机大战
    · MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
    · 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
    · 上周热点回顾(2.24-3.2)
    点击右上角即可分享
    微信分享提示