Can't start ssh service in centos v6.9

Issues related to applications and software problems
Post Reply
indikacentos
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

Image

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

Thanks..

User avatar
TrevorH
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply