3 ms·
I think this is a bit overkill for my taste with root but depends on use case. I'm SSHing regularly into my Android phone (and it does not need root) for backu
by therealmarv 2y ago
I think this is a bit overkill for my taste with root but depends on use case.
I'm SSHing regularly into my Android phone (and it does not need root) for backup purposes. Used various apps for that but settled for years on Termux.
* Install https://f-droid.org/ https://f-droid.org/ store
* Install Termux from there
* Install ssh daemon and rsync in Termux with
pkg upgrade
pkg install openssh rsync
* Read manual on https://wiki.termux.com/wiki/Remote_Access#Using_the_SSH_server https://wiki.termux.com/wiki/Remote_Access#Using_the_SSH_ser... on how to start, configure, stop ssh daemon. In general: The Termux documentation is good!
- dotancohen 2y agoI use `adb shell` very often on my Android phone. What are your use cases for SSH where adb does not suffice? Not arguing, just curious.
- 1727706962 2y agoNot OP but personally - Always available over my network/wireguard without touching the phone or a cable. Wireless ADB over a tcp socket technically works but requires a USB cable to bootstrap when you use the phone as a hotspot like I do, nor would I dare open it up to the internet. - Any number of SFTP clients rather than the limited ADB options - Higher throughput than wired ADB (at least on my Pixel 6A over USB) - I want ssh access to my termux environment anyway so may as well use it for file transfers too. I only really use adb for app development, maybe the odd nslookup or android package management with `pm`
- dotancohen 2y agoI see, thank you.
- Oxodao 2y agoIf you are rooted, you do no need a wire to bootstrap, there are apps that start the process, but it's mainly for convinience. Also this lets you run script on your real device instead of the chroot thing of termux which can be helpful (e.g. accessing /data/data stuff which is a pain with termux, not sure if its even possible). And my last reason is just that why would I need a separate app that I need to configure when I can just have a real ssh server
- therealmarv 2y agoIt's mostly rsync for me. I love rsync. And also: I don't want to connect my phone over the cable to my PC very often. I just want to quickly transfer sometimes (over WiFi).
- dotancohen 2y agoThanks.
- 1vuio0pswjnm7 2y agoNo wireless ADB in older phones.