sshd: /etc/ssh/sshd_config line xxx too long

Solution Verified - Updated -

Issue

The sshd service fails to start.

When inspecting the journal, the following error message can be seen:

# journalctl -u sshd
Dec 12 06:37:25 server sshd[2467]: /etc/ssh/sshd_config line 140 too long

Environment

  • Red Hat Enterprise Linux 7.9
  • openssh-7.4p1-23.el7_9

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