DH GEX集团超出范围

Modified on: Thu, 19 Sep 2019 03:20:01 +0800

我突然问到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群组超出范围但是它似乎没有回答这个问题。我控制客户端和服务器,它们都使用常规的OpenSSH和Ubuntu Linux。没有第三方。错误似乎也有点不同,它并没有抱怨比特化。

作者:Community,PaulBGD

最佳答案

看起来您正在针对旧的 OpenSSH服务器(OpenSSH 6.6.1p1)运行较新的 OpenSSH客户端(OpenSSH 7.2p2)。在OpenSSH 7.1p2发行说明中,它提到:

  

      
  • ssh(1),sshd(8):增加支持的最小模数大小
      diffie-hellman-group-exchange为2048位。
  •   

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

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

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


相关问答

添加新评论