<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body><p>Package: openssh-server<br>Version: 1:7.4p1-10+deb9u1<br>Severity: important<br>Tags: security<br>X-Debbugs-CC: secure-testing-team@lists.alioth.debian.org</p><p>--- Please enter the report below this line. ---</p><p>I have configured a server with a non-standard port using directive Port in /<br>etc/ssh/sshd_config, however when I restart the server it listens at port 22. <br>The ssh related services after rebooting look like this:</p><p># systemctl -a | grep ssh<br> ssh.service <br>loaded inactive dead OpenBSD Secure Shell server <br> system-ssh.slice <br>loaded active active system-ssh.slice <br> ssh.socket <br>loaded active listening OpenBSD Secure Shell server socket</p><p>As a workaround, If I restart the ssh server:</p><p># systemctl restart ssh.service</p><p>then sshd starts to listen to the configured port as it should be. The <br>services status look like this:</p><p># systemctl -a | grep ssh<br> ssh.service <br>loaded active running OpenBSD Secure Shell server <br> system-ssh.slice <br>loaded active active system-ssh.slice <br> ssh.socket <br>loaded inactive dead OpenBSD Secure Shell server socket</p><p><br></p><p><br>--- System information. ---<br>Architecture: <br>Kernel: Linux 4.9.0-3-amd64</p><p>Debian Release: 9.0<br> 500 stable security.debian.org <br> 500 stable ftp.de.debian.org</p><p>--- Package information. ---<br>Depends (Version) | Installed<br>=============================================-+-======================<br>adduser (>= 3.9) | 3.115<br>dpkg (>= 1.9.0) | 1.18.24<br>libpam-modules (>= 0.72-9) | 1.1.8-3.6<br>libpam-runtime (>= 0.76-14) | 1.1.8-3.6<br>lsb-base (>= 4.1+Debian3) | 9.20161125<br>openssh-client (= 1:7.4p1-10) | 1:7.4p1-10deb9u1<br>openssh-sftp-server | 1:7.4p1-10deb9u1<br>procps | 2:3.3.12-3<br>ucf (>= 0.28) | 3.0036<br>debconf (>= 0.5) | 1.5.61<br> OR debconf-2.0 | <br>init-system-helpers (>= 1.18~) | 1.48<br>libaudit1 (>= 1:2.2.1) | 1:2.6.7-2<br>libc6 (>= 2.17) | 2.24-11+deb9u1<br>libcomerr2 (>= 1.01) | 1.43.4-2<br>libgssapi-krb5-2 (>= 1.14+dfsg) | 1.15-1<br>libkrb5-3 (>= 1.13~alpha1+dfsg) | 1.15-1<br>libpam0g (>= 0.99.7.1) | 1.1.8-3.6<br>libselinux1 (>= 1.32) | 2.6-3+b1<br>libssl1.0.2 (>= 1.0.2d) | 1.0.2l-2<br>libsystemd0 | 232-25+deb9u1<br>libwrap0 (>= 7.6-4~) | 7.6.q-26<br>zlib1g (>= 1:1.1.4) | 1:1.2.8.dfsg-5</p><p><br></p><p>Recommends (Version) | Installed<br>=============================-+-===========<br>libpam-systemd | 232-25+deb9u1<br>ncurses-term | 6.0+20161126-1<br>xauth | 1:1.0.9-1+b2</p><p><br>Suggests (Version) | Installed<br>===========================-+-===========<br>molly-guard | <br>monkeysphere | <br>rssh | <br>ssh-askpass | <br>ufw |</p></body></html>