Ssh remote computer connection termux

    Unable to enter the login password on termux, so we can only use the generated key way to achieve remote connection.

Generating a public key import termux on Linux

Experimental environment : Linux IP: 192.168.2.206
          The TEMUX IP: 192.168.2.196
Note : Linux system and termux must be in the same local area network, or a private key can not be uploaded.

1. First install openssh service on termux

$ apt install openssh -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  krb5 ldns libdb libedit termux-auth
The following NEW packages will be installed:
  krb5 ldns libdb libedit openssh termux-auth
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 1660 kB of archives.
After this operation, 8405 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main aarch64 lib

Guess you like

Origin blog.csdn.net/qq_41490561/article/details/104616797