You are not logged in.

#1 2024-08-25 23:16:30

itarill
Member
Registered: 2020-06-03
Posts: 58

[solved] Job for sshd.service failed (exited)

I'm getting the following issue, which I cannot make heads or tails of.

sudo systemctl restart sshd

Job for sshd.service failed because the control process exited with error code.
See "systemctl status sshd.service" and "journalctl -xeu sshd.service" for details.

journalctl -xeu sshd.service:

aug 26 01:08:06 arch-dell sshd[9048]: /etc/ssh/sshd_config: line 15: Bad configuration option: The
aug 26 01:08:06 arch-dell sshd[9048]: /etc/ssh/sshd_config: terminating, 1 bad configuration options
aug 26 01:08:06 arch-dell systemd[1]: sshd.service: Main process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit sshd.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 255.
aug 26 01:08:06 arch-dell systemd[1]: sshd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit sshd.service has entered the 'failed' state with result 'exit-code'.
aug 26 01:08:06 arch-dell systemd[1]: Failed to start OpenSSH Daemon.
░░ Subject: A start job for unit sshd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit sshd.service has finished with a failure.
░░ 
░░ The job identifier is 13773 and the job result is failed.
aug 26 01:08:06 arch-dell systemd[1]: sshd.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ Automatic restarting of the unit sshd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
aug 26 01:08:06 arch-dell systemd[1]: sshd.service: Start request repeated too quickly.
aug 26 01:08:06 arch-dell systemd[1]: sshd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit sshd.service has entered the 'failed' state with result 'exit-code'.
aug 26 01:08:06 arch-dell systemd[1]: Failed to start OpenSSH Daemon.
░░ Subject: A start job for unit sshd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit sshd.service has finished with a failure.
░░ 
░░ The job identifier is 13892 and the job result is failed.

sudo nano /etc/ssh/sshd_config

 Include drop-in configurations
Include /etc/ssh/sshd_config.d/*.conf

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.


The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile      .ssh/authorized_keys

# override default of no subsystems
Subsystem       sftp    /usr/lib/ssh/sftp-server

And nothing worth mention in sshd_conf.d

Last edited by itarill (2024-08-26 07:06:42)

Offline

#2 2024-08-26 00:03:13

glitsj16
Member
Registered: 2015-04-26
Posts: 126

Re: [solved] Job for sshd.service failed (exited)

aug 26 01:08:06 arch-dell sshd[9048]: /etc/ssh/sshd_config: line 15: Bad configuration option: The

Line 15:

The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2

Seems to be missing a leading `# ` to be an actual commented line...

Offline

#3 2024-08-27 21:05:04

itarill
Member
Registered: 2020-06-03
Posts: 58

Re: [solved] Job for sshd.service failed (exited)

Looks like my response was not sent. Thanks for spotting it. For the life of me I didn't notice, nor did stupidGPT.

Offline

Board footer

Powered by FluxBB