background
Think mobile phone as a mobile phone to use only recently, such a high configuration is not wasted, if tools installed on the computer to mobile phones, not can use anytime and anywhere, more convenient and flexible, but mobile command really uncomfortable, the screen is too small to really don’t adapt, not thinking about if can use the computer connection mobile terminal alacrity. I tried it and found it was very simple.
Tremux is installed on one Root mobile phone, and XShell is installed on one PC
Since Google play does not provide apk installation package, need you to download to its shops, termux play.google.com/store/apps/ download address…
Links: xshell cracked versions pan.baidu.com/s/1CCKDSslp… Extraction code: HXS9
1. Install SSH
Termux terminal must be installed before root mobile phone, many online root tutorial we can go to find, or I a few days out of a mobile phone root tutorial for your reference.
1.1 installation SSH
Install Termux on your phone, open it and enter the installation command as shown below:
pkg install openssh
Copy the code
From the image above, you can see that SSH has been installed successfully
1.2 the SSH
Start the SSH command as follows:
sshd
Copy the code
From the image above, you can see that the SSH service has been started. Next, check the end user name.
Obtain the terminal user name and password
SSH service has been installed and started, now we go to get the user name, password and IP of the mobile terminal, and then use computer Xshell to connect the mobile terminal
2.1 Viewing the Terminal User Name
The command for viewing the terminal user name is as follows:
whoami
Copy the code
As you can see from the figure above, the user name here is u0_a249. Next, set the terminal password.
2.2 Setting a Terminal Password
Since the newly installed terminal does not have a password, you can use passwd to set the password. The command is as follows:
passwd
Copy the code
As can be seen from the figure above, we set the terminal password, then check the terminal IP address, and connect to the mobile terminal through computer Xshell
2.3 Viewing the TERMINAL IP Address
The command is as follows:
ifconfig
Copy the code
As can be seen from the figure above, the IP address of this paper is 192.168.3.255. So far, we have obtained the terminal user name, password and IP, and now use computer Xshell to connect to the mobile phone
Iii. Xshell connects to mobile terminals
If you have a public network server, you can map your phone’s IP address to a public network address. In this article, WE will use a local area network to demonstrate how to keep your phone and computer in the same network segment. My computer and phone are connected to the same wifi, so they are in the same network segment.
3.1 XShell Connecting to mobile phones
Open XShell and click Create session. Enter IP and port. Note that the default connection port of the mobile terminal is 8022
Click User Authentication, enter the username and password obtained above, and click Connect!
An SSH security warning pops up. Click Accept and save.
3.2 Connection Succeeded
So we’re connected to our phones and we can do whatever you want
Author: Chen Ting
Date: April 18, 2021