我正在尝试设置 SSH key 对。到目前为止我已经有了
- 使用 PuTTYGen 生成该对
- 将私钥保存到客户端计算机
- 已将公钥添加到服务器。我将其放入我将用于连接的用户的
~/.ssh/authorized_keys
文件中 - 将 PuTTYGen 中的指纹添加到 PuTTY 中的连接 > SSH > 主机 key 菜单
- 将私钥路径添加到 PuTTY 中的“连接 > SSH > 身份验证”菜单
但是当我尝试连接时,出现错误“主机 key 未出现在手动配置的列表中”。
最佳答案
第4步是错误的:
Added the fingerprint from PuTTYGen to the Connection > SSH > Host Keys menu in PuTTY
"Host keys" box用于服务器的公钥(主机 key )。当您添加了您的公钥时。
一般来说,您不需要在那里添加任何内容。只需在提示符上验证主机 key ,您将获得第一个连接。无论如何,你可能已经做了什么。如果没有,请参阅我的文章 Where do I get SSH host key fingerprint to authorize the server? – 您还可以查看另一篇文章Understanding SSH Key Pairs .
关于ssh - "Host key did not appear in manually configured list"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44444846/