linux – DH GEX集团超出范围

前端之家收集整理的这篇文章主要介绍了linux – DH GEX集团超出范围前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我突然出现问题SSH进入我的服务器:
ssh -v --@--
OpenSSH_7.2p2 Ubuntu-4ubuntu1,OpenSSL 1.0.2g-fips  1 Mar 2016
debug1: Reading configuration data /home/paul/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to -- [--] port 22.
debug1: Connection established.
debug1: identity file /home/paul/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/paul/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1
debug1: Remote protocol version 1.99,remote software version OpenSSH_6.6.1p1
debug1: match: OpenSSH_6.6.1p1 pat OpenSSH_6.6.1* compat 0x04000000
debug1: Authenticating to --:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group-exchange-sha1
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-cbc MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-cbc MAC: hmac-sha1 compression: none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<7680<8192) sent
debug1: got SSH2_MSG_KEX_DH_GEX_GROUP
ssh_dispatch_run_fatal: Connection to -- port 22: DH GEX group out of range

我已经广泛阅读了这个问题SSH: DH_GEX group out of range,但它似乎没有回答这个问题.我控制客户端和服务器,它们都使用常规的OpenSSH和Ubuntu Linux.没有第三方.错误似乎也有点不同,它并没有抱怨比特化.

解决方法

看起来您正在针对较旧的OpenSSH服务器(OpenSSH 6.6.1p1)运行较新的OpenSSH客户端(OpenSSH 7.2p2).在 OpenSSH 7.1p2 release notes,它提到:
  • ssh(1),sshd(8): increase the minimum modulus size supported for
    diffie-hellman-group-exchange to 2048 bits.

从报告的错误消息中,看起来是您的客户端拒绝_server提供的DH组交换值.

因此,我想知道在您的客户端机器应用了一些软件包/更新的时候,“突发问题”是否开始发生.

根据这个描述非常类似问题的SecurityExchange post,“解决方案”可能是:a)修改服务器端的/ etc / ssh / moduli文件,使服务器不使用小于2048位的DH组,或者b )将服务器升级到OpenSSH 7.1p2或更高版本.

原文链接:https://www.f2er.com/linux/400020.html

猜你在找的Linux相关文章