One-minute summary
- Use a dedicated Ed25519 key for rented infrastructure.
- Expose only required ports and verify the host fingerprint.
- Check nvidia-smi, disk, and outbound access immediately.
What to prepare
First record GPU model, VRAM, region, billing model, and total budget. GPU-hour pricing does not automatically include storage, egress, public IPv4, or support.
- Create a key with ssh-keygen and keep the private part local.
- Choose Ubuntu LTS with a CUDA driver compatible with your container or framework.
Step-by-step launch
- Add the public key in the provider console and create an instance with the smallest adequate disk.
- Copy the SSH command from the console and verify the IP, user, and custom port.
- After login, install security updates and create a non-privileged user.
ssh-keygen -t ed25519 -C "gpu-rental"
ssh -i ~/.ssh/gpu_rental user@HOST -p PORT
nvidia-smiVerify the result
- nvidia-smi shows the ordered GPU model and expected memory.
- df -h and free -h match the selected configuration; only SSH is public.
Pitfalls, cost, and safe rollback
Do not treat unknown components as free. Before deleting an instance, save required artifacts, then verify in the provider console that compute, unused disks, and IPs are gone.
- Do not enable password authentication or expose Jupyter without a token and TLS.
- Stopping a VM does not always stop disk and IP charges.
Scope and success criteria
Before renting capacity, define what must be completed in “Rent a GPU and connect securely over SSH”: a validation request, a dataset batch, training to a target metric, or a stable service under load. Record inputs, acceptable duration, region constraints, and the maximum budget. Without this boundary, teams often optimize the GPU-hour while increasing total cost through retries, idle time, slow storage, or data transfer.
Capture a baseline on a local machine or known instance: model version, precision, batch size, context length, completed units, p50/p95 latency, throughput, peak VRAM, and total cost. Compare equivalent jobs rather than advertised TFLOPS. If there is no baseline, run a short bounded trial first; it is cheaper than moving a production workload to an incompatible configuration.
Compatibility and data plan
Verify more than the GPU name: architecture, VRAM per accelerator, accelerator count, required interconnect, driver version, and supported CUDA or ROCm runtime. Retain the container image digest and a Python dependency lockfile. An unknown field in an offer means it must be checked with the provider; it is not a favorable default.
Decide where weights, datasets, checkpoints, logs, and completed artifacts will live before launch. Ephemeral storage is useful for cache but is not a backup. Estimate initial transfer time and repeated egress, use checksums for large files, and never bake secrets into the image. When deleting an instance, separately verify remaining volumes, snapshots, and public IPs.
Operational runbook
Phase 1 — preparation. 1) Create a key with ssh-keygen and keep the private part local. 2) Choose Ubuntu LTS with a CUDA driver compatible with your container or framework. Assign a launch owner, confirm the budget, and retain the verified offer link before renting. Record local client versions and the expected node configuration. Create experiment-specific secrets with least privilege. Preparation is complete when another engineer can understand inputs, constraints, and the stop condition from the record without asking the runbook author.
Phase 2 — execution. 1) Add the public key in the provider console and create an instance with the smallest adequate disk. 2) Copy the SSH command from the console and verify the IP, user, and custom port. 3) After login, install security updates and create a non-privileged user. Run steps in order and retain safe output after each change. Do not change the image, runtime version, and input shape simultaneously or the source of an error becomes ambiguous. Run long operations in a managed session, add a timeout, and verify free disk before downloading weights. A repeated run should either resume safely or explicitly require temporary-state cleanup.
Phase 3 — acceptance. 1) nvidia-smi shows the ordered GPU model and expected memory. 2) df -h and free -h match the selected configuration; only SSH is public. Define an expected range for each check rather than “works.” Retain time, configuration, latency, throughput, peak memory, and errors. Include a negative test: an invalid token, exceeded limit, or unavailable file should fail in a controlled way without revealing a secret. Acceptance ends with a baseline comparison and a decision to continue, change configuration, or roll back.
Phase 4 — risks and rollback. 1) Do not enable password authentication or expose Jupyter without a token and TLS. 2) Stopping a VM does not always stop disk and IP charges. Turn every limitation into an observable signal and an action: stop new traffic, save a checkpoint, restore the previous image, or remove the resource. Test rollback before production while failure is inexpensive. After the job, export artifacts, verify checksums, revoke credentials, and separately remove compute, volumes, snapshots, and IPs. Reconcile the final bill after the billing window closes.
Total cost and observability
Calculate compute using the actual billing duration and price scope; node-hour must not be silently compared with accelerator-hour. Then add persistent and temporary disks, snapshots, egress, public addresses, support, model-loading idle time, and failed runs. Keep an unknown component unknown and show a range instead of substituting zero. Optimize cost per completed job, token, image, or epoch.
Minimum telemetry includes GPU utilization and memory, temperature and throttling, CPU and RAM, disk reads and writes, network, queue depth, latency, errors, and completed units. Tie metrics to the model and configuration version. A single fast benchmark does not prove sustained performance; run a warm-up, a bounded load test, and a check after several checkpoint or output-upload cycles.
Security, shutdown, and evidence
Use separate short-lived credentials with least privilege, protect management interfaces with network controls or a VPN, and never expose Jupyter, ComfyUI, inference endpoints, or metrics without authentication and TLS. Supply secrets through the provider mechanism, rotate them, and revoke them after the job. Treat marketplace hosts as external environments and do not place data there without defined encryption, deletion, and jurisdiction rules.
The work is complete only after artifacts are saved, checksums verified, metrics recorded, and billed resources removed. The billing snapshot and final run report should show start and stop time, configuration, success state, known costs, and remaining unknowns. For production, add an owner, expiry for exceptions, and a clear rollback. If the provider cannot confirm deletion or final cost, retain that uncertainty as an open risk.
Sources and attribution
Reviewed July 31, 2026 — written by the editorial team; technical review: Compute Research Desk.


Comments