-
Notifications
You must be signed in to change notification settings - Fork 10
SSH Setup
PsProsen-Dev edited this page Mar 9, 2026
·
1 revision
A crucial part of turning an Android device into a 24/7 server is managing it remotely from your PC. OCA offers an automatic SSH setup during installation, but here is how to manage it.
When you finish the setup, Termux will output your IP address and Username.
On your PC, open a terminal (PowerShell, CMD, or Bash) and type:
ssh <username>@<device-ip> -p 8022Port 8022 is required as Termux runs without root restrictions on high ports.
If you skipped SSH during the OCA setup, you can manually install the OpenSSH server:
pkg install openssh
passwd(Set a new password. The characters will not show up while typing—this is normal).
Start the server:
sshd-
Username: Run
whoamiin Termux. -
IP Address: Run
ifconfig | grep "inet " | grep -v 127.0.0.1
For stronger security, disable password login and use SSH keys:
- Generate a key on your PC:
ssh-keygen -t rsa -b 4096. - Copy it to Android:
ssh-copy-id -p 8022 <username>@<device-ip>.