Add the Port number at the end of the sshd_config file. As a result, the service will not work.

is the last line with
Port xxx
service starting not coming
error message as follows
No error when xxx is 22

Sep 13 04:52:39 localhost systemd: Starting OpenSSH server daemon.
Sep 13 04:52:39 localhost systemd: sshd.service: main process exited, code=exited, Status=255/n/a
Sep 13 04:52:39 localhost systemd: Failed to start OpenSSH server daemon.
Sep 13 04:52:39 localhost systemd: Unit sshd.service entered failed state.
Sep 13 04:52:39 localhost dbus: [system] Activating service name="org.fedoraproject.Setroubleshootd" (using servicehelper)
Sep 13 04:52:39 localhost systemd: sshd.service failed.
Sep 13 04:52:39 localhost dbus-daemon: dbus [724]: [system] Activating service name="org.fedoraproject.Setroubleshootd" (using) Servicehelper)
Sep 13 04:52:39 localhost dbus: [system] Activated service "org.fedoraproject.Setroubleshootd" failed: Failed to execute program / lib64/dbus-1/dbus-daemon-launch-helper: Success
Sep 13 04:52:39 localhost dbus-daemon: dbus [724]: [system] Activated service" org.fedoraproject.Setroubleshootd" failed: Failed to execute program / lib64/dbus-1/dbus-daemon-launch-helper: Success
Sep 13 04:52:39 localhost dbus-daemon: dbus [724]: [system Activating service name="org.fedoraproject.Setroubleshootd" (using servicehelper)
Sep 13 04:52:39 localhost dbus: [system] Activating service name="org.fedoraproject.Setroubleshootd" (using servicehelper)
Sep 13 04:52:39 localhost dbus [724]: [system] Activated service "org.fedoraproject.Setroubleshootd" failed: Failed to execute program / lib64/dbus-1/dbus-daemon-launch-helper: Success
Sep 13 04:52:39 localhost dbus-daemon: dbus [724]: [system] Activated service" org .fedoraproject.Setroubleshootd "failed: Failed to execute program / lib64/dbus-1/dbus-daemon-launch-helper: Success
Sep 13 04:53:21 localhost systemd: sshd.service holdoff time over, Scheduling restart.

Thank you. I found several cases on the Internet that have nothing in common with me.

Jun.21,2021

check iptables selinux

Menu