notes for nerds – pc, server, phones, apps

notes4nerds

— notes.h87.at —

ssh nach Android/termux

Follow these steps:

  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:
    whoami1
    Save this value for later. Might look like
    u0_a254
  5. Find the host by running this in Termux:
    ipconfig 1
    Look for something like
    inet addr:192.168.0.100
    Save this value for later.
  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 <username>@<jjhost> -p8022
  8. Type in your password and viola!
    You’re accessing Termux from your computer.

https://joeprevite.com/ssh-termux-from-computer/

  1. https://superuser.com/questions/667171/ssh-usernamehost-how-do-i-find-the-user-name-and-host-name-of-my-local-mach/667173#667173
    ↩︎
  2. https://superuser.com/questions/667171/ssh-usernamehost-how-do-i-find-the-user-name-and-host-name-of-my-local-mach/667173#667173
    ↩︎

https://wiki.termux.com/wiki/Remote_Access

https://github.com/rishabhrpg/sshd-in-termux


Beitrag veröffentlicht

in

von

Schlagwörter:

Kommentare

Schreibe einen Kommentar