Bug#850614: openssh-server: output error about missing DSA key
Package: openssh-server
Version: 1:7.4p1-5
Severity: normal
Dear Maintainer,
each time I connect to this system, I get this error:
sshd[788]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
This system is a recent installation with a recently installed openssh-server and as such, a DSA key has not been generated:
# ls -l /etc/ssh/
total 576
-rw-r--r-- 1 root root 553122 janv. 3 15:43 moduli
-rw-r--r-- 1 root root 1723 janv. 3 15:43 ssh_config
-rw-r--r-- 1 root root 3381 janv. 4 21:08 sshd_config
-rw------- 1 root root 227 janv. 4 21:08 ssh_host_ecdsa_key
-rw-r--r-- 1 root root 173 janv. 4 21:08 ssh_host_ecdsa_key.pub
-rw------- 1 root root 399 janv. 4 21:08 ssh_host_ed25519_key
-rw-r--r-- 1 root root 93 janv. 4 21:08 ssh_host_ed25519_key.pub
-rw------- 1 root root 1675 janv. 4 21:08 ssh_host_rsa_key
-rw-r--r-- 1 root root 393 janv. 4 21:08 ssh_host_rsa_key.pub
Not creating a DSA key during installation is fine, but outputting error messages about its absence is not.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages openssh-server depends on:
ii adduser 3.115
ii debconf [debconf-2.0] 1.5.59
ii dpkg 1.18.18
ii init-system-helpers 1.46
ii libaudit1 1:2.6.7-1
ii libc6 2.24-8
ii libcomerr2 1.43.3-1
ii libgssapi-krb5-2 1.15-1
ii libkrb5-3 1.15-1
ii libpam-modules 1.1.8-3.5
ii libpam-runtime 1.1.8-3.5
ii libpam0g 1.1.8-3.5
ii libselinux1 2.6-3
ii libssl1.0.2 1.0.2j-5
ii libsystemd0 232-8
ii libwrap0 7.6.q-26
ii lsb-base 9.20161125
ii openssh-client 1:7.4p1-5
ii openssh-sftp-server 1:7.4p1-5
ii procps 2:3.3.12-3
ii ucf 3.0036
ii zlib1g 1:1.2.8.dfsg-4
Versions of packages openssh-server recommends:
ii libpam-systemd 232-8
ii ncurses-term 6.0+20161126-1
ii xauth 1:1.0.9-1
Versions of packages openssh-server suggests:
ii ksshaskpass [ssh-askpass] 4:5.8.4-1
pn molly-guard <none>
pn monkeysphere <none>
pn rssh <none>
ii ssh-askpass 1:1.2.4.1-9
pn ufw <none>
-- debconf information:
openssh-server/permit-root-login: false
--
Laurent.
Reply to: