Opening android ports


I'm trying to open ports on android 8, but I don't know how to do it.I want to run an ssh server in termux(so that I can connect from outside).

Author: uuuvn, 2020-01-04

1 answers

You do not need to open it, everything works out of the box (just the port is not default 22).

On Android:

  1. pkg upgrade
  2. pkg install openssh - install OpenSSH
  3. sshd - start the server
  4. whoami - displays the user name with it and will need to connect, for example: u0_a139
  5. passwd - create a password for the user

On the computer: ssh <имя пользователя>@<ip> -p 8022

 2
Author: Exploding Kitten, 2020-01-04 16:08:10