I've been using Termux over SSH for quite a while now. I've always done so over WiFi. This works reasonably well at home, where I controll the IP Addresses. In other networks it was more annoying, because I always had to run
ifconfig first, to get my IP. But the big annoyances start when you want to use it in a place that has no WiFi network available. Previously, I used an Android tablet and a keyboard. With this I set up a WiFi direct connection between my phone. It's wonky and sometimes requires to restart both devices before working again, but it works.
With the brilliant Termux terminal emulator app you can run an SSH server on your Android.Read more