Nice subject.
I use termux on my tablets. Termux works with rooted or out of the box android, and gives you command line interface, ssh, scp, and much more.
Next...I use a otg (on the go) adapter to connect a mechanical keyboard.
Android is frustrating to me, but I keep coming back because of the hardware integration.
I am trying to do without a laptop, but when I get down to it...I find my self siting behind 4 or more machines logged into multiple servers.
Conclusion- I need both.