美文网首页
openEuler远程报错

openEuler远程报错

作者: wyude | 来源:发表于2024-05-07 10:54 被阅读0次
    • kex error : no match for method mac algo client->server: server [], client []

    主要看mac algo这个位置,
    究其原因,就是客户端提供的加密算法和服务端不一致,修改对应的算法列表
    在服务端就去etc/ssh/sshd_config找对应的算法行去更新

    MACs hmac-sha2-256,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha1
    StrictModes yes
    AllowTcpForwarding no
    AllowAgentForwarding no
    GatewayPorts no
    PermitTunnel no
    KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1
    HostbasedAcceptedKeytypes ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512
    GSSAPIKexAlgorithms gss-group14-sha256-,gss-group16-sha512-,gss-curve25519-sha256-
    CASignatureAlgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-512,rsa-sha2-256
    HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512,ecdsa-sha2-nistp256,ssh-rsa,ssh-dss
    PubkeyAcceptedKeyTypes ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512
    

    改完配置重启ssh

    service sshd restart
    

    相关文章

      网友评论

          本文标题:openEuler远程报错

          本文链接:https://www.haomeiwen.com/subject/fbbrfjtx.html