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,如下图

GitLab——Warning: Permanently added '192.168.22.111' (ECDSA) to the list of known hosts._第1张图片
有不懂之地,请留言。

你可能感兴趣的:(☞,【JAVA】)