Differences
This shows you the differences between two versions of the page.
| ssh_connection_routing_based_on_username [06.11.2020 14:47] – created Pascal Suter | ssh_connection_routing_based_on_username [15.11.2020 22:49] (current) – [read the manual!] Pascal Suter | ||
|---|---|---|---|
| Line 53: | Line 53: | ||
| docker exec piper /sshpiperd manpage | man -l - | docker exec piper /sshpiperd manpage | man -l - | ||
| + | ===== systemd service ===== | ||
| + | I couldn' | ||
| + | create a systemd service for sshpiperd: | ||
| + | < | ||
| + | cat > / | ||
| + | [Unit] | ||
| + | Description=SSHPiper Daemon | ||
| + | Requires=network.target | ||
| + | After=network.target | ||
| + | [Service] | ||
| + | ExecStart=/ | ||
| + | Restart=always | ||
| + | # Restart service after 10 seconds if node service crashes | ||
| + | RestartSec=10 | ||
| + | # Output to syslog | ||
| + | StandardOutput=syslog | ||
| + | StandardError=syslog | ||
| + | SyslogIdentifier=sshpiperd | ||
| + | # use root if sshpiperd is configured to listen on port 22, otherwise use some other user as it is more secure should sshpiperd let you down. | ||
| + | User=root | ||
| + | Group=root | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | EOF | ||
| + | </ | ||
| + | |||
| + | enable the service: | ||
| + | < | ||
| + | systemctl daemon-reload | ||
| + | systemctl --now enable sshpiperd.service | ||
| + | </ | ||