ssh fails with error - Their offer: ssh-dss Connection closed.

Solution Verified - Updated -

Issue

  • ssh fails with following error.
  • While taking ssh session of RHEL 8 or RHEL 9system from RHEL 6 and RHEL 7 throwing below error:

    Unable to negotiate with (IP) port 22: no matching host key type found. Their offer: ssh-dss Connection closed.
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • 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