Install command line application on android globally using termux `apt`
Note that for SSH access to Termux you can install sshd with apt install openssh.

Setup the authorized keys as normal ($HOME/.ssh/authorized_keys), start the sshd daemon and connect on port 8022 by default.