git 警告:已将 IP 地址 # 的 RSA 主机密钥永久添加到已知主机列表中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32260164/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 11:19:18  来源:igfitidea点击:

Warning: Permanently added the RSA host key for IP address # to the list of known hosts

git

提问by Evy N

When I tried to do a git pushI got this:

当我尝试做一个时,git push我得到了这个:

Warning: Permanently added the RSA host key for IP address '###.##.###.###' to the list of known hosts. ERROR: Repository not found. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists`

警告:已将 IP 地址“###.##.###.###”的 RSA 主机密钥永久添加到已知主机列表中。错误:未找到存储库。致命:无法从远程存储库读取。

请确保您拥有正确的访问权限并且存储库存在`

What does it mean? Should I be worry?

这是什么意思?我应该担心吗?

回答by joran

Warning: Permanently added the RSA host key for IP address '###.##.###.###' to the list of known hosts.

警告:已将 IP 地址“###.##.###.###”的 RSA 主机密钥永久添加到已知主机列表中。

This is normal if it is the first time you try push to the server, It is part of the ssh handshake and stores the fingerprint of the remote server ssh key for future validation.

如果是第一次尝试推送到服务器,这是正常的,它是 ssh 握手的一部分,并存储远程服务器 ssh 密钥的指纹以供将来验证。

ERROR: Repository not found. fatal: Could not read from remote repository.

错误:未找到存储库。致命:无法从远程存储库读取。

This may happen if you have the wrong url to your remote repo.

如果远程存储库的 URL 错误,则可能会发生这种情况。

Run git remote -vand check that you have the right urls to your remote repo

运行git remote -v并检查您的远程仓库的 url 是否正确

回答by Risin9

1.Make sure the address you filled in is correct,you can use git remote -vcommand to display configuration information

1.确保您填写的地址正确,可以使用git remote -v命令显示配置信息

2.When I first pushed the code to the new repository on github, I forgot to use the git add/git commit -mcommand to directly use the git pushcommand, then display that warning

2.当我第一次把代码推送到github上的新仓库时,忘记使用git add/git commit -m命令直接使用git push命令,然后显示那个警告