I do use termux daily to ssh into other boxes, that's incredibly useful
If you can access it from within the sandbox, you don't need to be limited to keyboards - the HID framework allows for arbitrary I/O.
https://www.parkytowers.me.uk/thin/wyse/3040/
Atom x5 Z-8350, 2GB of RAM, 8-16GB of flash, some USB, and there's a board on that page you can have done up to do a slapdash SD adapter inside the case for more flash.