From 276a5aa89c9516b0d2d4896c404d1c67d0d44460 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 6 Oct 2017 12:35:00 +0100 Subject: Adjust "Per-connection sshd instances with systemd" instructions in README.Debian to recommend using a drop-in file rather than copying and modifying the ssh.socket unit file. --- debian/README.Debian | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'debian/README.Debian') diff --git a/debian/README.Debian b/debian/README.Debian index f17ccb187..58a5741b0 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -203,9 +203,17 @@ authenticated and unauthenticated connections; see https://bugzilla.redhat.com/show_bug.cgi?id=963268 for more discussion. The provided ssh.socket unit file sets ListenStream=22. If you need to have -it listen on a different address or port, then you will need to do this by -copying /lib/systemd/system/ssh.socket to /etc/systemd/system/ssh.socket and -modifying the ListenStream option. See systemd.socket(5) for details. +it listen on a different address or port, then you will need to do this as +follows (modifying ListenStream to match your requirements): + + mkdir -p /etc/systemd/system/ssh.socket.d + cat >/etc/systemd/system/ssh.socket.d/listen.conf <