ssh_connection_routing_based_on_username

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ssh_connection_routing_based_on_username [06.11.2020 14:47] – created Pascal Suterssh_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't find a systemd service script anywhere for sshpiperd, so here is my attempt on one.. it seems to work so far :) 
 +create a systemd service for sshpiperd: 
 +<code>
 +cat > /etc/systemd/system/sshpiperd.service <<EOF
 +[Unit]
 +Description=SSHPiper Daemon
 +Requires=network.target
 +After=network.target
  
 +[Service]
 +ExecStart=/usr/local/bin/sshpiperd daemon
 +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
 +</code>
 +
 +enable the service: 
 +<code>
 +systemctl daemon-reload 
 +systemctl --now enable sshpiperd.service
 +</code>
  
  • ssh_connection_routing_based_on_username.1604670434.txt.gz
  • Last modified: 06.11.2020 14:47
  • by Pascal Suter