OSDN Git Service

New service:tinyssh.
authormobinmob <mobinmob@disroot.org>
Wed, 9 Feb 2022 17:26:37 +0000 (19:26 +0200)
committermobinmob <mobinmob@disroot.org>
Wed, 9 Feb 2022 17:26:37 +0000 (19:26 +0200)
usr/share/66/service/tinysshd [new file with mode: 0644]

diff --git a/usr/share/66/service/tinysshd b/usr/share/66/service/tinysshd
new file mode 100644 (file)
index 0000000..4282428
--- /dev/null
@@ -0,0 +1,15 @@
+[main]
+@type = classic
+@version = 0.0.1
+@description = "tinyssh daemon"
+@user = ( root )
+
+[start]
+@execute = (
+       foreground { tinysshd-makekey -q /etc/tinyssh/sshkeydir }
+       execl-cmdline -s { s6-tcpserver -v ${ADDRESS} ${SSHPORT}  tinysshd ${cmd_args} /etc/tinyssh/sshkeydir }  )
+
+[environment]
+cmd_args=! -L -v
+ADDRESS=0.0.0.0
+SSHPORT=!22