sshd: /etc/ssh/sshd_config line xxx: too many ports.
Issue
The sshd
service fails to start.
When inspecting the journal, the following error message can be seen:
# journalctl -u sshd
Dec 11 06:41:29 server sshd[4002]: /etc/ssh/sshd_config line 273: too many ports
Environment
- Red Hat Enterprise Linux 7.9
- Red Hat Enterprise Linux 8.9
- Red Hat Enterprise Linux 9.3
- openssh-7.4p1-23.el7_9
- openssh-8.0p1-19.el8_8
- openssh-8.7p1-34.el9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.