Using ~/.ssh/config
Give your machine a short name in your SSH config, so ssh, scp and rsync work without long addresses.
On this page
Your SSH client reads a config file where you can give a host a short name and remember its options. With an entry for your reservation, ssh gtl replaces the full command, and the same name works with scp, rsync and editors such as VS Code's Remote-SSH.
Where the file is
- macOS and Linux:
~/.ssh/config - Windows:
C:\Users\<you>\.ssh\config(no file extension)
Create it if it doesn't exist. On macOS and Linux, keep it private:
touch ~/.ssh/config
chmod 600 ~/.ssh/configAdd your machine
Take the user and address from the SSH command in your dashboard. For ssh user@my-llm-box.res-4ad0a522.ssh.gputolease.ai, add:
Host gtl
HostName my-llm-box.res-4ad0a522.ssh.gputolease.ai
User user
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
ServerAliveInterval 30Hostis the short name you'll type.IdentityFileis your private key: the file without.pub.IdentitiesOnly yesmakes SSH offer only that key, which avoids "Too many authentication failures" when your agent holds many keys.ServerAliveInterval 30keeps an idle connection from being dropped by routers along the way.
Now connect with:
ssh gtlOne entry for every reservation
Every reservation has its own address, but they all end in .ssh.gputolease.ai. A wildcard entry sets your key and options for all of them:
Host *.ssh.gputolease.ai
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
ServerAliveInterval 30With it, the full command from your dashboard just works, and you can still add a short Host alias per reservation.
Port forwarding in the config
To forward a port every time you connect, for example a model server on port 8080:
Host gtl
HostName my-llm-box.res-4ad0a522.ssh.gputolease.ai
User user
LocalForward 8080 localhost:8080After your reservation
Each reservation is a freshly wiped machine at a new address, so update HostName for your next reservation. See Troubleshooting if SSH warns that a host key has changed.