OpenSSH errors with "Bad configuration option" when using KexAlgorithms in ssh_config in RHEL 6.2

Solution Verified - Updated -


  • Some of our scripts use diffie-hellman algorithm but it seems that diffie-hellman algorithm is not supported by this RHEL6 openssh package and because of which we are facing issues (An error message "Bad configuration option" is printed on the console duing bootup and finally the ssh is not accessible)


  • Red Hat Enterprise Linux (RHEL) 6.2
  • openssh < openssh-5.3p1-94.el6.x86_64

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