build Linux on your phone and access it remotely
First, prepare
1.android Mobile Phone
2.Termux (: https://termux.com/)
3. Cloud Host (Linux)
4. Native Host (Linux)
Second, installation
1. Download and install Termux on your Android phone:
2. Install SSH to log in to Linux
$ APT Update//must be executed for the first time
$ Apt Install openssh emacs nmap Python-dev clang
3. Configuration
$ sshd &//android End Execution
NOTE: sshd
listens on port 8022 instead of number 22nd, You can therefore use the following command to verify that the SSH service is turned on
# ssh-keygen//pc End Execution
Note: Copy PC-side ~/.ssh/id_rsa.pub content to Android side ~/.ssh/authorized_keys (can use Termux to log on to PC side, then SCP to Android)
At this point, the PC can log on to the Android side.
Third, remote
PC-Side
# ssh-cfng-r 7001:localhost:8022 user name @ Cloud Host
Android side
$ ssh-cfng-l 7000:localhost:7001 User name @ Cloud Host
PC-Side
# Ssh-p 7000 A machine user name @localhost can log on to the Android side
Reference URL:
1. Termux the first SSH use
2. Use Termux to turn your Android phone into an SSH server
3. How to remotely access a computer in the corporate LAN at home SSH
Build Linux on your phone and access it remotely