V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ddddad
V2EX  ›  Linux

ssh 连接问题

  •  
  •   ddddad · 2020-12-10 19:07:03 +08:00 · 1361 次点击
    这是一个创建于 1246 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ssh config 里面配置的公钥明明是 rsa 签名 在 know_hosts 里面的却是 ecdsa

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

    有谁碰到过么,怎么解决的?
    IamYourDad
        1
    IamYourDad  
       2020-12-10 19:10:12 +08:00
    ssh -vvv ....
    ddddad
        2
    ddddad  
    OP
       2020-12-10 19:15:34 +08:00
    就是-v 看到的

    debug1: kex: host key algorithm: ecdsa-sha2-nistp256
    debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
    debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

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

    参考: https://www.ssh.com/ssh/host-key
    IamYourDad
        4
    IamYourDad  
       2020-12-10 20:46:57 +08:00 via Android
    rsa 不安全,服务器自己的私钥一般都是 ecdsa,客户的湿湿稅随便了
    ddddad
        5
    ddddad  
    OP
       2020-12-10 22:06:29 +08:00
    感谢楼上
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5776 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:53 · PVG 14:53 · LAX 23:53 · JFK 02:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.