Created
August 12, 2023 16:22
-
-
Save tienthanh2509/9568cd0dfc4ef5156f0234df50def8f3 to your computer and use it in GitHub Desktop.
Termux SSHD for root user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/data/data/com.termux/files/usr/bin:$PATH | |
sshd \ | |
-D -dd \ | |
-p 2222 -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /data/data/com.termux/files/usr/etc/ssh/sshd_config | |
PrintMotd yes | |
Port 2222 | |
PermitRootLogin yes | |
PasswordAuthentication no | |
PubkeyAuthentication yes | |
AuthorizedKeysFile /data/authorized_keys | |
StrictModes no | |
Subsystem sftp /data/data/com.termux/files/usr/libexec/sftp-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment