$ ssh -T [email protected] The authenticity of host 'github.com (20.205.243.166)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. [email protected]: Permission denied (publickey).
时间: 2024-03-18 15:44:01 浏览: 347
这个消息提示你输入yes以确认连接到GitHub服务器。当你确认后,SSH会将服务器的指纹添加到你的known_hosts文件中。然而,在你的情况下,你收到了另一个错误消息"Permission denied (publickey)",这表示你的SSH密钥没有被正确识别或没有被添加到你的GitHub账户中。
要解决这个问题,你需要检查你的SSH密钥是否正确设置,并且将其添加到你的GitHub账户中。你可以按照GitHub的文档说明来完成这些步骤。
相关问题
$ ssh -T [email protected] The authenticity of host 'github.com (20.205.243.166)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names 什么意思
这个消息出现在你第一次通过SSH访问GitHub上的Git仓库时。这是一个安全功能,旨在确保你连接的是正确的服务器,而不是恶意的仿冒者。ED25519密钥指纹是服务器的唯一标识符,用于验证服务器的真实性。
为了继续连接,你可以验证消息中显示的指纹是否与GitHub提供的指纹匹配,或者将密钥添加到你的SSH known_hosts文件中。如果你选择将密钥添加到你的known_hosts文件中,则在未来连接到相同服务器时将不会再看到此消息。
叶@ye MINGW64 ~/Desktop $ ssh -T [email protected] The authenticity of host 'github.com (20.205.243.166)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. [email protected]: Permission denied (publickey).
这个错误提示意味着您的SSH密钥没有正确配置或者没有被正确识别。这通常是由以下几种情况引起的:
1. 您没有在GitHub上设置SSH密钥。请确保您的SSH密钥已经添加到您的GitHub帐户中。
2. 您的SSH密钥不匹配。请检查您的SSH密钥是否与您在GitHub上添加的公钥匹配。
3. 您的SSH密钥没有被正确识别。请确保您的SSH密钥已经被正确添加到您的SSH代理中,并且代理已经启动。
解决这个问题的最好方法是检查您的SSH密钥是否已经正确设置,并且确保您的SSH代理已经启动。您可以通过运行以下命令来启动SSH代理:
eval "$(ssh-agent -s)"
然后,使用以下命令将您的SSH密钥添加到代理中:
ssh-add ~/.ssh/id_rsa
注意,您需要将上面的命令中的“~/.ssh/id_rsa”替换为您自己的SSH密钥路径。完成后,再次运行SSH测试命令,看看是否仍然存在问题。
阅读全文
相关推荐









