Build Linux on your phone and access it remotely

Source: Internet
Author: User
Tags ssh server

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.