Skip to content

how can i have sshd run automatically as i open termux #9586

Closed Locked Answered by macerg
MMMMMoris asked this question in Q&A
Discussion options

You must be logged in to vote

In /data/data/com.termux/files/home/.termux/boot
#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd

This will put termux in 'non sleep' mode and run sshd on phone boot presuming you have termux:boot installed.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@MMMMMoris
Comment options

@agnostic-apollo
Comment options

Comment options

You must be logged in to vote
2 replies
@MMMMMoris
Comment options

@macerg
Comment options

Answer selected by MMMMMoris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants