V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ddddad
V2EX  ›  Linux

ssh 连接问题

  •  
  •   ddddad · Dec 10, 2020 · 1812 views
    This topic created in 1976 days ago, the information mentioned may be changed or developed.
    ssh config 里面配置的公钥明明是 rsa 签名 在 know_hosts 里面的却是 ecdsa

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

    有谁碰到过么,怎么解决的?
    IamYourDad
        1
    IamYourDad  
       Dec 10, 2020
    ssh -vvv ....
    ddddad
        2
    ddddad  
    OP
       Dec 10, 2020
    就是-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  
       Dec 10, 2020 via Android
    host key 是 sshd 标识服务器自己用的
    你所提供的 rsa 公玥是 ssh identity,是用于标识用户的

    参考: https://www.ssh.com/ssh/host-key
    IamYourDad
        4
    IamYourDad  
       Dec 10, 2020 via Android
    rsa 不安全,服务器自己的私钥一般都是 ecdsa,客户的湿湿稅随便了
    ddddad
        5
    ddddad  
    OP
       Dec 10, 2020
    感谢楼上
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3049 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 14:05 · PVG 22:05 · LAX 07:05 · JFK 10:05
    ♥ Do have faith in what you're doing.