Termux launch screenshot on Android
Termux

SSH into Android with Termux

Install Termux from Fdroid or any APK sites
you dont have to install Fdroid, you can directly download Termux APK

https://f-droid.org/en/packages/com.termux/

  1. Open Termux on your Android phone
  2. Install OpenSSH:
    pkg upgrade
    pkg install openssh
  3. Set up a password:
    passwd
  4. Find your username by running this in Termux:
    whoami

    Save this username for later. Might look like u0_a1310

  5. Find the host by running this in Termux: (not working anymore)
    ifconfig

    Look for something like inet addr:192.168.0.4
    Save this value for later.
    Look on your phone wifi information, find the local ip.

  6. Start the ssh server on Termux:
    sshd

    Verify that it’s running with:

    logcat -s 'ssh:*'

    You should see something like “Server listening on port 8022”

  7. On your computer, SSH into your machine on port 8022 (default port):
    ssh u0_a1310@192.168.1.4 -p8022
  8. Type in your password and viola! You’re accessing Termux from your computer.
Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

three + 14 =