Can't start ssh service in centos v6.9

Issues related to applications and software problems
Post Reply
Posts: 1
Joined: 2018/06/07 08:11:18

Can't start ssh service in centos v6.9

Post by indikacentos » 2018/06/07 08:18:50

We have Linux server and cannot login via ssh because its service is stopped. when we are trying to start it give us the following error.

Error: /etc/ssh/sshd_config line 23: directive 'protocol' is not allowed within a match block


please help us recover this problem and start the ssh service.


User avatar
Forum Moderator
Posts: 29438
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't start ssh service in centos v6.9

Post by TrevorH » 2018/06/07 08:24:09

It sort of tells you what's wrong in the error. In /etc/ssh/sshd_config you have a "Match " directive and under that, you've attempted to add a "Protocol" line and it's not allowed there. You've either put your Match directive in the wrong place in the file or you've added Protocol under it where it's not allowed.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - Software Support”