Connect to your machine
Open a terminal on the machine over SSH, copy files to and from it, and keep jobs running.
Every machine is reached over SSH. Its rental page shows the command once it is Running. Find your machines on Rentals.
Open a terminal on it
- Open the rental from Rentals.
- Under Reach it, copy the SSH command.
- Run it on your computer:
ssh -p 40022 root@203.0.113.7The first time, SSH asks whether to trust the machine. Type yes. You are now root on the machine. Check the GPUs:
nvidia-smiCopy files
Use scp with the same port and address. The port flag is a capital -P for scp.
scp -P 40022 ./train.py root@203.0.113.7:/root/scp -P 40022 root@203.0.113.7:/root/model.pt ./For a folder, add -r. For large or many files, rsync resumes where it stopped:
rsync -avP -e "ssh -p 40022" ./data/ root@203.0.113.7:/root/data/Keep a job running after you disconnect
Closing your terminal stops what runs in it. Start long jobs inside tmux:
tmux new -s train
python train.pyPress Ctrl+B, then D, to leave it running. Reconnect later and return with tmux attach -t train.
Only port 22
A machine takes SSH and nothing else from the internet. Reach anything else it serves, such as Jupyter or your own web app, through an SSH tunnel.
What you cannot do
- Run Docker. A machine is already a container.
- Reach it on any port but SSH.