Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

SSH Login Stuck At : "debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP"

edited Jun 30, 2022 1:52PM in Linux

SSH connections hang, and errors such as SSH2_MSG_KEX_DH_GEX_GROUP or SSH2_MSG_KEX_ECDH_REPLY are seen in verbose logging output or in /var/log/messages.

When trying to log in to an ssh instance, the login attempt hangs.

The output from ssh running with verbose logging enabled, via the command:

# ssh -vvv <USERNAME@HOSTNAME>

shows error messages like:

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY


These messages may also appear in the /var/log/messages log file.

If network packet information is captured while the issue is occurring, such as via the tcpdump utility, packets larger than the 1500 may be being retransmitted, such as in this example:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!