ssh 连接问题

2020-12-10 19:07:03 +08:00
 ddddad
ssh config 里面配置的公钥明明是 rsa 签名 在 know_hosts 里面的却是 ecdsa

调试发现走的是 /etc/ssh 里面的*

有谁碰到过么,怎么解决的?
1378 次点击
所在节点    Linux
5 条回复
IamYourDad
2020-12-10 19:10:12 +08:00
ssh -vvv ....
ddddad
2020-12-10 19:15:34 +08:00
就是-v 看到的

debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

没有用指定的算法 但是 config 里配置的是 ip
jeffreystoke
2020-12-10 20:10:51 +08:00
host key 是 sshd 标识服务器自己用的
你所提供的 rsa 公玥是 ssh identity,是用于标识用户的

参考: https://www.ssh.com/ssh/host-key
IamYourDad
2020-12-10 20:46:57 +08:00
rsa 不安全,服务器自己的私钥一般都是 ecdsa,客户的湿湿稅随便了
ddddad
2020-12-10 22:06:29 +08:00
感谢楼上

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/734252

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX