Shader
Connect over SSH or Jupyter

DocsGuides15 of 35 · 2 min read

Connect over SSH or Jupyter

Reach a running rental over SSH or in Jupyter, with a key you gave at launch or a generated password.

A rental shows its connection details once it is running. You need a rental from Rent a GPU. Its seconds are charged from the moment the details appear (Metering and settlement).

#Connect

App

  1. Open the details

    On the instance page, press Connect. It shows the SSH command with a copy control, the Jupyter link, and Copy token for Jupyter. A rental launched without an SSH key shows a Password, to you only.

  2. Open SSH

    Paste the command into a terminal.

  3. Open Jupyter

    Open the Jupyter link in a browser; the token in it signs you in. Copy token gives it alone.

SDK

connect.ts
const instance = await shader.instance(id)
console.log(instance.ssh?.command, instance.jupyter?.url)

ssh holds the host, port, user, command and, without a key, the password; jupyter holds the URL and token.

CLI

Terminal
shader instance <instance>
shader ssh <instance>

shader ssh starts the system SSH client with the instance's host, port and user, so the keys in your SSH agent and SSH config apply.

MCP

get_instance returns ssh (host, port, user, command, password) and jupyter (url, token).

#What happened

  1. The details

    They belong to the rental's machine and stay valid until it stops.

  2. Who sees them

    The wallet that owns the rental, and an agent only for rentals launched under its own key; other keys of the same wallet do not.

#Afterwards

When the work is done, stop the rental. Closing SSH or Jupyter does not stop the meter.

#If it fails

What you seeWhyNext
No SSH or Jupyter yetThe rental is still provisioningWait for running
Permission denied (publickey)The key you offer is not the one given at launchUse the matching private key, or the password
NOT_FOUNDThe instance belongs to another wallet, or another agent keyUse the token that launched it