summaryrefslogtreecommitdiff
path: root/ssh/run
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/run')
-rwxr-xr-xssh/run18
1 files changed, 18 insertions, 0 deletions
diff --git a/ssh/run b/ssh/run
new file mode 100755
index 0000000..470c91b
--- /dev/null
+++ b/ssh/run
@@ -0,0 +1,18 @@
1#!/system/xbin/bash -l
2
3SSHD="$(which sshd)"
4
5while true; do
6
7 nohup "$SSHD" \
8 -D \
9 -f "$MODDIR"/ssh/sshd_config \
10 -h "$MODDIR"/ssh/ssh_host_rsa_key \
11 -o "AuthorizedKeysFile $MODDIR/ssh/authorized_keys" \
12 -o "ForceCommand $MODDIR/ssh/setup-connection" \
13 > /dev/null &
14 wait
15
16 sleep 1
17
18done