You can run an ssh server in termux and run whatever programs you want from there.
There's several options for storage, as well:
- connect an external drive via USB (The /Android/media directory on both the internal and external SD card is generally accessible from both termux and other apps on the phone)
- if you're rooted you can mount a network storage in termux (or system-wide, but then you have to figure out sandboxing)
- if you're not rooted, mount in reverse (mount your phone storage over the network)
There's several options for storage, as well: - connect an external drive via USB (The /Android/media directory on both the internal and external SD card is generally accessible from both termux and other apps on the phone) - if you're rooted you can mount a network storage in termux (or system-wide, but then you have to figure out sandboxing) - if you're not rooted, mount in reverse (mount your phone storage over the network)