using PubkeyAcceptedKeyTypes in sshd_config breaks ssh connect from RHEL7

Solution Verified - Updated -


  • ssh should work between RHEL7 and RHEL8 even with PubkeyAcceptedKeyTypes defined. It should be possible to limit the Accepter Keytypes.
  • After limiting PubkeyAcceptedKeyTypes for hardening to below same setting works without problem with RHEL7.
PubkeyAcceptedKeyTypes ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,,,,,


  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Enterprise Linux (RHEL) 8
  • ssh

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