When login via ssh, stuck at "debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP"

Solution Verified - Updated -


When SSH login stuck and added "-vvv" option, we saw that it hung with below messages.

debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP


  • Red Hat Enterprise Linux (RHEL) 7
  • Interface with MTU 9000

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content