blob: 8c2449e8410adc3b26a4881a9a39c5324d702ffb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[Unit]
Description=tmate ssh server
Wants=tmate-ssh-server-genkeys-ed25519.service tmate-ssh-server-genkeys-rsa.service
After=tmate-ssh-server-genkeys-ed25519.service tmate-ssh-server-genkeys-rsa.service
After=network.target
[Service]
EnvironmentFile=/etc/tmate-ssh-server/tmate-ssh-server.conf
ExecStart=/usr/bin/tmate-ssh-server -k /etc/tmate-ssh-server/ -p ${PORT} -h ${HOSTNAME} -v
ProtectSystem=full
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT
NoNewPrivileges=true
PrivateTmp=true
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
|