OSDN Git Service
(root)
/
avyssos
/
void-66-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c1528b
)
New service:tinyssh.
author
mobinmob
<mobinmob@disroot.org>
Wed, 9 Feb 2022 17:26:37 +0000
(19:26 +0200)
committer
mobinmob
<mobinmob@disroot.org>
Wed, 9 Feb 2022 17:26:37 +0000
(19:26 +0200)
usr/share/66/service/tinysshd
[new file with mode: 0644]
patch
|
blob
diff --git a/usr/share/66/service/tinysshd
b/usr/share/66/service/tinysshd
new file mode 100644
(file)
index 0000000..
4282428
--- /dev/null
+++ b/
usr/share/66/service/tinysshd
@@ -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