Phone relay setup

Run each block in Termux, in order. Tap a block to select it if the copy button doesn't work on this browser.

STEP 01
Install and start Termux's SSH server
Listens on 8022.
pkg install openssh -y
sshd
STEP 02
Trust the VPS's key
Lets pokeuser@VPS log in over the tunnel with no password prompt.
mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPRE+h8ZYLEiDk8Q2yaNyoPtC+mgnVEnQbdcGvog93xY pokeuser@ubuntu" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
STEP 03
Generate this phone's own key
Send the last line of output back in the chat with Claude.
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""
cat ~/.ssh/id_ed25519.pub
That cat output is a public key — safe to share.
STEP 04
Open the tunnel
Only after Claude confirms step 3's key is trusted on the VPS — otherwise it just fails auth.
ssh -N -f -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -R 2224:localhost:8022 [email protected] -i ~/.ssh/id_ed25519
Backgrounds itself (-f). Re-run if Termux gets killed, until the boot watchdog is set up.