Run each block in Termux, in order. Tap a block to select it if the copy button doesn't work on this browser.
8022.pkg install openssh -y sshd
mkdir -p ~/.ssh && chmod 700 ~/.ssh echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPRE+h8ZYLEiDk8Q2yaNyoPtC+mgnVEnQbdcGvog93xY pokeuser@ubuntu" >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N "" cat ~/.ssh/id_ed25519.pub
cat output is a public key — safe to share.ssh -N -f -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -R 2224:localhost:8022 [email protected] -i ~/.ssh/id_ed25519
-f). Re-run if Termux gets killed, until the boot watchdog is set up.