diff options
author | Colin Watson <cjwatson@debian.org> | 2017-10-06 12:35:00 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-10-06 12:35:00 +0100 |
commit | 276a5aa89c9516b0d2d4896c404d1c67d0d44460 (patch) | |
tree | 7e6dfbd5715e41c925d8ae4619665379ffdf57ac /debian/README.Debian | |
parent | 38962ab5846de0f8918f3e98c64ecf28d4393eac (diff) |
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.
Diffstat (limited to 'debian/README.Debian')
-rw-r--r-- | debian/README.Debian | 14 |
1 files changed, 11 insertions, 3 deletions
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 | |||
203 | https://bugzilla.redhat.com/show_bug.cgi?id=963268 for more discussion. | 203 | https://bugzilla.redhat.com/show_bug.cgi?id=963268 for more discussion. |
204 | 204 | ||
205 | The provided ssh.socket unit file sets ListenStream=22. If you need to have | 205 | The provided ssh.socket unit file sets ListenStream=22. If you need to have |
206 | it listen on a different address or port, then you will need to do this by | 206 | it listen on a different address or port, then you will need to do this as |
207 | copying /lib/systemd/system/ssh.socket to /etc/systemd/system/ssh.socket and | 207 | follows (modifying ListenStream to match your requirements): |
208 | modifying the ListenStream option. See systemd.socket(5) for details. | 208 | |
209 | mkdir -p /etc/systemd/system/ssh.socket.d | ||
210 | cat >/etc/systemd/system/ssh.socket.d/listen.conf <<EOF | ||
211 | [Socket] | ||
212 | ListenStream=2222 | ||
213 | EOF | ||
214 | systemctl daemon-reload | ||
215 | |||
216 | See systemd.socket(5) for details. | ||
209 | 217 | ||
210 | Terminating SSH sessions cleanly on shutdown/reboot with systemd | 218 | Terminating SSH sessions cleanly on shutdown/reboot with systemd |
211 | ---------------------------------------------------------------- | 219 | ---------------------------------------------------------------- |