@supernova
You can do that with regular android and termux, just don't know how far can you go with it
@nikolal You mean adb shell? I never really played with that much. Maybe its the same. But with a Debian based system I am familiar with it. And you can do ssh keys, is that possible with adb?
@supernova
No, I mean SSH. I use termux and SSH to connect to remote machines, but its possible to connect to Android phone from othet machine, see here for details.
https://wiki.termux.com/wiki/Remote_Access
@supernova
Yes, I've never had need to access my phone with CLI either, but I have need for termux only to maintain my remote machines, also I use termux to run pythin scripts from my raspberry pi for some calculation needs, so it does come in handy for me.