ssh_dispatch_run_fatal: Connection to x.x.x.x port 22: DH GEX group out of range

You’re trying to SSH to a Zyxel switch and get the following message:

[email protected] ~ $ ssh [email protected] -p 22
ssh_dispatch_run_fatal: Connection to x.x.x.x port 22: DH GEX group out of range

Solution:

ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -o HostKeyAlgorithms=+ssh-dss [email protected]

Reference:
https://serverfault.com/questions/729033/ssh-dh-gex-group-out-of-range

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top