1. 安装Termux
2. 在Termux终端执行:$ pkg install openssh
3. 编辑 /files/usr/etc/ssh/sshd_config
Port 22
Protocol 2
PasswordAuthentication yes
4. 查询当前用户名(例:u0_a55):$ whoami
5. 修改当前用户登录密码(例:123456):$ passwd
6. 启动sshd服务: $ sshd
7. 查看服务运行状态:$ netstat -tlp| grep sshd
正常启动之后,就可以用ssh连接Termux了
$ ssh -p 22 u0_a55@192.168.1.100
输入前面设置的密码就可以登录了