sshd socket activation
This commit is contained in:
parent
2c11af8319
commit
29def23f92
@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Fix sshd socket activation when using tmux/screen"
|
||||
date: 2015-04-13 10:04:18 +0200
|
||||
comments: true
|
||||
categories:
|
||||
---
|
||||
|
||||
When using sshd.socket to start sshd on demand, detaching from a tmux/screen
|
||||
session will not work. The reason is once the ssh session is closed, systemd
|
||||
will terminate all remaining processes in the sshd cgroups, which affects also
|
||||
the tmux/screen background process. However this behaviour can be changed using
|
||||
the following drop-in file:
|
||||
|
||||
```plain /etc/systemd/system/sshd@.service.d/killmode.conf
|
||||
[Service]
|
||||
KillMode=process
|
||||
```
|
Loading…
Reference in New Issue
Block a user