Ask Ubuntu Asked by AbstProcDo on December 8, 2021
I tried to restart the ssh as
$ systemctl restart ssh
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
Read the journal but does not provide any solution. I have to reboot the computer.
May 19 18:10:04 alpha systemd[1]: ssh.service: Scheduled restart job, restart counter is at 4.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit ssh.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 19 18:10:04 alpha systemd[1]: Stopped OpenBSD Secure Shell server.
-- Subject: Unit ssh.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit ssh.service has finished shutting down.
May 19 18:10:04 alpha systemd[1]: Starting OpenBSD Secure Shell server...
-- Subject: Unit ssh.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit ssh.service has begun starting up.
May 19 18:10:04 alpha sshd[23874]: /etc/ssh/sshd_config: line 107: Bad configuration option: ForwardX11Trusted
May 19 18:10:04 alpha sshd[23874]: /etc/ssh/sshd_config: terminating, 1 bad configuration options
May 19 18:10:04 alpha systemd[1]: ssh.service: Control process exited, code=exited status=255
May 19 18:10:04 alpha systemd[1]: ssh.service: Failed with result 'exit-code'.
May 19 18:10:04 alpha systemd[1]: Failed to start OpenBSD Secure Shell server.
-- Subject: Unit ssh.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit ssh.service has failed.
--
-- The result is RESULT.
May 19 18:10:04 alpha systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
May 19 18:10:04 alpha systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit ssh.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 19 18:10:04 alpha systemd[1]: Stopped OpenBSD Secure Shell server.
-- Subject: Unit ssh.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit ssh.service has finished shutting down.
May 19 18:10:04 alpha systemd[1]: ssh.service: Start request repeated too quickly.
May 19 18:10:04 alpha systemd[1]: ssh.service: Failed with result 'exit-code'.
May 19 18:10:04 alpha systemd[1]: Failed to start OpenBSD Secure Shell server.
-- Subject: Unit ssh.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit ssh.service has failed.
--
-- The result is RESULT.
What’s the problem?
The error message says that:
/etc/ssh/sshd_config: line 107: Bad configuration option: ForwardX11Trusted
Please, edit your sshd_config file and remove or comment line 107.
I think there is no option called ForwardX11Trusted
for sshd_config. Is it for ssh_config?
Please, look at:
man sshd_config | grep X11
man ssh_config | grep X11
Answered by FedKad on December 8, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP