failed to install/upgrade: sshd_config: line 13: Bad configuration option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Unpacking openssh-server (1:7.6p1-
Setting up openssh-server (1:7.6p1-
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-11-20 22:09:42 CET; 20ms ago
Process: 2918 ExecStartPre=
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ufw (0.36-0ubuntu0.
Rules updated for profile 'OpenSSH'
Firewall reloaded
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (237-3ubuntu10.43) ...
Errors were encountered while processing:
openssh-server
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: openssh-server 1:7.6p1-4ubuntu0.3
ProcVersionSign
Uname: Linux 4.15.0-124-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.20
Architecture: amd64
Date: Fri Nov 20 22:00:10 2020
ErrorMessage: installed openssh-server package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-12-27 (694 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
Python3Details: /usr/bin/python3.6, Python 3.6.9, python3-minimal, 3.6.7-1~18.04
PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2.3
apt 1.6.12ubuntu0.1
SSHDConfig:
Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: /etc/ssh/
/etc/ssh/
SourcePackage: openssh
Title: package openssh-server 1:7.6p1-4ubuntu0.3 failed to install/upgrade: installed openssh-server package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2020-06-16 (157 days ago)
tags: | removed: need-duplicate-check |
Hi Huy,
The bug report appears to indicate some sort of syntax error in your /etc/ssh/ sshd_config file. What's on line 13 of that file?
SSHDConfig: sshd_config: line 13: Bad configuration option: Include sshd_config: terminating, 1 bad configuration options
Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: /etc/ssh/
/etc/ssh/
If you're uncertain, then can you please attach your /etc/ssh/ sshd_config for us to review? If that file contains any information that is security sensitive or personally identifying please change this bug report from "Public" to "Private". Thanks ahead of time.