Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2627320
D25497.1731966314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25497.1731966314.diff
View Options
diff --git a/src/docs/user/userguide/diffusion_hosting.diviner b/src/docs/user/userguide/diffusion_hosting.diviner
--- a/src/docs/user/userguide/diffusion_hosting.diviner
+++ b/src/docs/user/userguide/diffusion_hosting.diviner
@@ -585,6 +585,32 @@
Now you can move the Phorge `sshd` to port 22, then adjust the value
for `diffusion.ssh-port` in your Phorge configuration.
+You can set up and enable this systemd unit to start the second sshd
+daemon on every reboot:
+
+```
+name=/etc/systemd/system/phorge-ssh.service,lang=ini
+[Unit]
+Description=Phorge sshd
+Documentation=https://we.phorge.it/book/phorge/article/diffusion_hosting/#sshd-setup
+After=network.target auditd.service
+
+[Service]
+ExecStartPre=/usr/sbin/sshd -t -f /path/to/config_file.edited
+ExecStart=/usr/sbin/sshd -f /path/to/config_file.edited
+ExecReload=/usr/sbin/sshd -t -f /path/to/config_file.edited
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=on-failure
+RestartPreventExitStatus=255
+Type=notify
+RuntimeDirectory=sshd
+RuntimeDirectoryMode=0755
+
+[Install]
+WantedBy=multi-user.target
+Alias=phorge-sshd.service
+```
No Direct Pushes
================
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 21:45 (12 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
976937
Default Alt Text
D25497.1731966314.diff (1 KB)
Attached To
Mode
D25497: Add example systemd unit for sshd in Diffusion docs
Attached
Detach File
Event Timeline
Log In to Comment