GitLab——Warning: Permanently added '192.168.22.111' (ECDSA) to the list of known hosts.

遇到的问题

使用git从服务器上面pull代码的时候,遇到如下问题

Git Pull Failed
			Warning: Permanently added '192.168.22.111' (ECDSA) to the list of known hosts.
			Permission denied, please try again.
			Permission denied, please try again.
			Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
			Could not read from remote repository.
			Please make sure you have the correct access rights
			and the repository exists.

翻译~

GIT拉失败

警告:已将“192.168.22.111”(ECDSA)永久添加到已知主机列表中。

权限被拒绝,请重试。

权限被拒绝,请重试。

权限被拒绝(publickey、gssapi keyex、gssapi with mic、password)。

无法从远程存储库中读取。

请确保您拥有正确的访问权限

存储库存在。

如何解决的呢?

需要重新生成公钥

步骤1
ssh-keygen-trsa-C"youremailaddress"
步骤2
回车3下
步骤3
cd~/.ssh
步骤4(这一步是查看公钥,要保留,一会要用)
catid_rsa.pub
步骤5 将刚刚生成好的公钥复制到github,如下图

在这里插入图片描述
有不懂之地,请留言。

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 10
    评论
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值