install openssh:
pkg upgrade
pkg install openssh
setup password:
passwd
get the username:
whoami
nano /data/data/com.termux/files/usr/etc/ssh/sshd_config
add the line below after the last line:
ListenAddress 0.0.0.0:portNumber
start ssh server:
sshd
stop the ssh server:
pkill sshd
get the sshd information:
sshd -e -d -d -d