My Oracle Support Banner

Oracle Linux: Cannot Start sshd.service with KexAlgorithms Error. (Doc ID 2676530.1)

Last updated on JUNE 08, 2020

Applies to:

Linux OS - Version Oracle Linux 7.0 to Oracle Linux 7.8 with Unbreakable Enterprise Kernel [4.14.35] [Release OL7 to OL7U8]
Information in this document applies to any platform.


sshd.service will not start and getting this error.

[root@hostname bin]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.
[root@hostname bin]# systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2020-05-28 19:13:37 CDT; 640ms ago
Docs: man:sshd(8)
Process: 196302 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
Main PID: 196302 (code=exited, status=255)
May 28 19:13:37 systemd[1]: Failed to start OpenSSH server daemon.
May 28 19:13:37 systemd[1]: Unit sshd.service entered failed state.
May 28 19:13:37 systemd[1]: sshd.service failed.
[root@hostname bin]#
[root@hostname pam.d]# /usr/sbin/sshd -T
/etc/ssh/sshd_config line 153: Directive 'KexAlgorithms' is not allowed within a Match block


 No Changes


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.