Linux(Ubantu)通过ssh连接手机端Termux

手机端Termux

输入:sshd(启动ssh服务)

电脑端Linux

输入:ssh [email protected] -p 8022
然后直接输入秘密就可以了
Linux(Ubantu)通过ssh连接手机端Termux其中u0_a555:为手机用户名
192.168.253.2:为手机ip地址

查看手机用户名

输入:whoami

查看手机电脑ip地址

电脑ip:ifconfig
Linux(Ubantu)通过ssh连接手机端Termux手机输入:ip a