-
Install Termux on android device.
-
Find Termux username.
$ whoami u0_a96
-
Set a password.
$ passwd
-
Allow storage access:
$ termux-setup-storage
-
Install OpenSSH.
$ pkg install openssh
-
Start SSH server
$ sshd $ pkill sshd # for stopping the server
-
Find IP of your android device.
$ ip r 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.3
-
Now you can SSH into your android device. You can access storage (
/storage/emulated/0
) because oftermux-setup-storage
$ ssh -p 8022 [email protected]
Last active
February 21, 2025 02:45
-
-
Save mjnaderi/b933fe940cd47b09d5cfc14875e77d67 to your computer and use it in GitHub Desktop.
Access Android Storage Remotely using Termux and SSH
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hay