summaryrefslogtreecommitdiff
path: root/ssh/run
blob: 470c91be07e7e95ed6d5cc20bf768ba2ed5cc137 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/system/xbin/bash -l

SSHD="$(which sshd)"

while true; do

    nohup "$SSHD" \
        -D \
        -f "$MODDIR"/ssh/sshd_config \
        -h "$MODDIR"/ssh/ssh_host_rsa_key \
        -o "AuthorizedKeysFile $MODDIR/ssh/authorized_keys" \
        -o "ForceCommand $MODDIR/ssh/setup-connection" \
        > /dev/null &
    wait

    sleep 1

done