Connecting
SSH, an SSH config entry, VS Code, port forwarding and copying files.
Every machine is reached over SSH as root, with the key you chose when renting. The exact command is under Machines.
An entry in your SSH config
Give the machine a short name so ssh gpu is enough:
Host gpu
HostName 203.0.113.7
Port 40122
User root
IdentityFile ~/.ssh/id_ed25519
ServerAliveInterval 30A new machine, a new host key
Every rental is a fresh machine, so SSH may warn that the host key changed when an address is reused. Remove the old entry with ssh-keygen -R "[203.0.113.7]:40122".
VS Code and Cursor
Host gpu entry above to your SSH config.gpu. Open /root or your project folder.Reaching a web interface
Services on the machine (a model server, ComfyUI, Jupyter) listen on the machine itself. Forward their port through SSH and open them on your own computer; nothing is exposed to the internet:
# local port 8080 → port 8080 on the machine
ssh -p 40122 -L 8080:localhost:8080 [email protected]Then open http://localhost:8080. Forward several ports by repeating -L. See Ports and services.
Keep work running after you disconnect
A process started in an SSH session ends when the session does. Run long jobs in tmux:
apt-get update && apt-get install -y tmux # if it is missing
tmux new -s work # start; detach with Ctrl+B then D
tmux attach -t work # come back laterCopying files
# up
rsync -avP -e "ssh -p 40122" ./data/ [email protected]:/root/data/
# down
rsync -avP -e "ssh -p 40122" [email protected]:/root/out/ ./out/rsync resumes interrupted transfers and skips files that are already there.