How to disable specific MAC, Ciphers, KexAlgorithms, HostKeyAlgorithms and PubkeyAcceptedKeyTypes for sshd service in RHEL 9 ?

Solution Verified - Updated -

Issue

  • How to configure specific mac, ciphers, KexAlgorithms, hostkeyalgorithms and pubkeyacceptedkeytypes for sshd service in RHEL 9?
  • Security scanners regards specific algorithm and ciphers for ssh as vulnerable and hence there is requirement to modify these parameters in sshd_config to fix the vulnerability.

Environment

  • Red Hat Enterprise Linux 9
  • openssh-server
  • crypto-policies

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