SSH connection from rhel6 to rhel8 fails with message 'Unable to negotiate a key exchange method'

Solution Verified - Updated -

Issue

  • During ssh connection from RHEL6 to RHEL8 server, getting below in verbose output :-
debug2: mac_setup: found hmac-sha1
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug2: mac_setup: found hmac-sha1
debug1: kex: client->server aes128-ctr hmac-sha1 none
Unable to negotiate a key exchange method
  • Above message is observed , even when FIPS is not enabled.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 6
  • openssh

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