termux configure

install openssh:

pkg upgrade
pkg install openssh

setup password:

passwd

get the username:

whoami

change the ssh server port:

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

Termux Wiki Remote Access

留下评论

通过 WordPress.com 设计一个这样的站点
从这里开始