> For the complete documentation index, see [llms.txt](https://support.spiderpool.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.spiderpool.com/ai/connect.md). Agents can also search and read this documentation through its [MCP server](https://support.spiderpool.com/~gitbook/mcp).

# Connect to an instance

How to reach an instance over SSH, Jupyter and SSH tunnels - the SSH command, checking the host key on first connect, the Jupyter link and its tunnel fallback, tunnels for ComfyUI and the inference AP

When an instance is **Running**, its page has a **Connect** card, and running instances in the list have a **Connect** menu (**Open Jupyter**, **Copy SSH command**). There is no connection information in any other state.

## What the Connect card contains

| Item                                     | Contents                                                                                                                                                                                                                                  |
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Open Jupyter**                         | Only with Jupyter on: opens JupyterLab in a new tab. The **URL** line below has the full link, with the token masked by default; use **Show**, **Hide** and **Copy**. With Jupyter off you see "Jupyter is not enabled on this instance". |
| SSH                                      | The full SSH command, with **Copy**.                                                                                                                                                                                                      |
| Host key                                 | The fingerprint of the instance's SSH host key (`SHA256:…`), marked "verify on first connect", with **Copy**. Without a fingerprint yet it says "No fingerprint available to verify against yet".                                         |
| Inference API / ComfyUI / Service        | Only for templates that run a service: the SSH tunnel command and how to reach the service once the tunnel is up.                                                                                                                         |
| Access Jupyter via SSH tunnel (fallback) | Only with Jupyter on, collapsed by default: the tunnel command and local address to use when the Jupyter link does not open.                                                                                                              |
| Tip                                      | "Open SSH sessions drop during platform upgrades; the container and billing are unaffected. Download datasets inside the container rather than uploading via SSH or Jupyter."                                                             |

## Connect over SSH

The SSH command has this form:

```bash
ssh -p <port> root@<instance-id>.i.spiderpool.com
```

* Each instance has its own host name and port (above 30000), which stay the same across stop and start.
* The user is `root`. Login works only with an SSH key; there is no password.
* The keys that can log in are all keys that were on your account when the instance was created or last started.

Steps:

1. Click **Copy** on the SSH line of the **Connect** card.
2. Paste it into a terminal on your computer (on Windows, PowerShell or Windows Terminal) and press Enter.
3. The first time, you are asked whether to trust the host. Check the fingerprint as described in the next section, then type `yes`.
4. You are now inside the container. Keep your code and data under `/workspace`.

If your private key is not in the default location, pass it with `-i`:

```bash
ssh -i ~/.ssh/my_key -p <port> root@<instance-id>.i.spiderpool.com
```

If you connect often, add an entry to `~/.ssh/config` and connect with `ssh my-gpu` (remote-development plugins of code editors can use the same name):

```
Host my-gpu
    HostName <instance-id>.i.spiderpool.com
    Port <port>
    User root
    IdentityFile ~/.ssh/id_ed25519
```

### Copying files

For small files use `scp` (note the capital `-P` for the port):

```bash
scp -P <port> ./code.tar.gz root@<instance-id>.i.spiderpool.com:/workspace/
```

`rsync` is good for syncing directories; it must also be installed in the instance (the pytorch and comfyui templates include it):

```bash
rsync -avP -e "ssh -p <port>" ./project/ root@<instance-id>.i.spiderpool.com:/workspace/project/
```

Download large datasets inside the instance instead; see "Connection tips" below.

## Check the host key fingerprint

On the first connection your terminal shows something like:

```
The authenticity of host '[<instance-id>.i.spiderpool.com]:<port>' can't be established.
ED25519 key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
```

Compare the part after `SHA256:` with the fingerprint on the **Host key** line of the **Connect** card:

* They match: type `yes`. You will not be asked again.
* They differ: type `no`, do not connect, and use **Report a problem** on the instance page or contact support.
* The Console says "No fingerprint available to verify against yet": the platform does not have this instance's fingerprint yet. Refresh the page a little later.

An instance keeps the same host key across stop and start.

## Jupyter

Jupyter is available only on instances created with the **Jupyter** switch on; it cannot be turned on afterwards. JupyterLab opens in `/workspace`.

### Open it directly

Click **Open Jupyter**. Your browser opens `https://<instance-id>.i.spiderpool.com/?token=…` in a new tab. The token in the link is your login: anyone with the full link can enter your JupyterLab, so do not share it or post screenshots of it.

### Use an SSH tunnel when the link does not open

If the new tab does not load, shows an error, or says "Instance unavailable", use a tunnel instead:

1. On the **Connect** card, expand **Access Jupyter via SSH tunnel (fallback)**, copy the tunnel command and run it in a terminal on your computer:

   ```bash
   ssh -p <port> -L 8888:127.0.0.1:8888 root@<instance-id>.i.spiderpool.com
   ```
2. Leave that terminal open.
3. Open the local address after "Once the tunnel is up, open", `http://127.0.0.1:8888/?token=…` (you can copy it).

If port 8888 is already used on your computer (the terminal says `Address already in use`), change the first `8888` in the command, for example `-L 8889:127.0.0.1:8888`, and open `http://127.0.0.1:8889/?token=…`.

## Service tunnels: ComfyUI, inference API and other services

For templates that run a service, the **Connect** card has an extra section that starts with the tunnel command:

```bash
ssh -p <ssh-port> -L <service-port>:localhost:<service-port> root@<instance-id>.i.spiderpool.com
```

| Section                       | Service port            | Once the tunnel is up                                                                 |
| ----------------------------- | ----------------------- | ------------------------------------------------------------------------------------- |
| ComfyUI (comfyui template)    | 8188                    | Open `http://localhost:8188` in your browser.                                         |
| Inference API (vllm template) | 8000                    | Send requests from your computer, for example `curl http://localhost:8000/v1/models`. |
| Service (other templates)     | As shown in the Console | Use `localhost:<service-port>` on your computer.                                      |

These services are reachable only through SSH tunnels for now; there is no public address. See [Models](https://support.spiderpool.com/ai/models.md) for using the inference API.

One SSH command can open several tunnels at once, for example Jupyter and the inference API together:

```bash
ssh -p <port> -L 8888:127.0.0.1:8888 -L 8000:localhost:8000 root@<instance-id>.i.spiderpool.com
```

Services you start yourself in the container (TensorBoard, for example) can be forwarded the same way: `-L <local-port>:localhost:<container-port>`.

## Connection tips

* **Sessions can drop.** Platform upgrades end open SSH sessions; the container and billing are unaffected, so just reconnect. Network hiccups can also end a session. Run long jobs inside `tmux` (every platform image includes it) so they keep running when you disconnect:

  ```bash
  tmux new -s train      # start a session and launch your job in it
  # press Ctrl-b, then d, to leave the session; the job keeps running
  tmux attach -t train   # after reconnecting, return to the session
  ```
* **Download datasets inside the container.** SSH and Jupyter traffic is relayed through the platform, so uploading large files is slow. Download straight into `/workspace` from inside the instance with `curl`, `git`, `pip` or your dataset tools.
* **Key changes need a restart.** Keys are written into an instance only when it is created or started. A running instance does not get keys you add later, and a key you delete from your account can still log in to instances that are already running. Stop and start the instance to apply key changes.
* **Only `/workspace` persists.** Changes outside `/workspace` are lost after a stop; see [Templates](https://support.spiderpool.com/ai/templates.md).

## Client notes per OS

* **Windows 10 / 11**: the OpenSSH client is built in; run the commands above in PowerShell or Windows Terminal. Keys are in `C:\Users\<you>\.ssh\` by default. With PuTTY: convert your private key to `.ppk` with PuTTYgen first; host name `<instance-id>.i.spiderpool.com`, the instance's port, user `root`; add tunnels under **Connection → SSH → Tunnels**.
* **macOS / Linux**: run the commands in a terminal. If you see `UNPROTECTED PRIVATE KEY FILE`, run `chmod 600 ~/.ssh/id_ed25519`.
* **Remote development in a code editor**: add the `~/.ssh/config` entry shown above, then pick that host in the editor's remote SSH plugin.

## Common SSH errors

| Error                                              | Cause                                                                                                                        | What to do                                                                                                                                                                                                                  |
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Permission denied (publickey)`                    | Your private key does not match a key on your account; the key was added after the instance started; the user is not `root`. | Pass the right key with `-i`; for a newly added key, stop and start the instance; make sure the command says `root@`.                                                                                                       |
| `Connection refused` or `Connection timed out`     | The instance is not **Running**; its machine is unreachable; your network blocks high ports.                                 | Check in the Console that the instance is **Running**; if the machine is unreachable, wait for it; try another network (a phone hotspot, for example).                                                                      |
| `Could not resolve hostname`                       | The command was not copied completely, or your DNS failed.                                                                   | Copy the full command again; try another network or DNS server.                                                                                                                                                             |
| `WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` | The host key received differs from the one saved on your computer.                                                           | Compare it with the fingerprint in the Console. If it differs, do not connect and report the problem. If it matches, remove the old entry with `ssh-keygen -R "[<instance-id>.i.spiderpool.com]:<port>"` and connect again. |
| `Connection closed by remote host`, `Broken pipe`  | The session was ended (platform upgrade, network hiccup, or the instance was stopped).                                       | Check that the instance is still running and reconnect; keep long jobs in `tmux`.                                                                                                                                           |
| `bind [127.0.0.1]:8888: Address already in use`    | The local port is already in use.                                                                                            | Change the first port after `-L`.                                                                                                                                                                                           |
| `UNPROTECTED PRIVATE KEY FILE`                     | The private key file's permissions are too open.                                                                             | `chmod 600 <key file>`.                                                                                                                                                                                                     |

More cases are covered in [Troubleshooting for renters](https://support.spiderpool.com/ai/troubleshooting.md).

## FAQ

**Can I log in with a password?** No, only with SSH keys.

**Can several people on my team connect to the same instance?** Yes. Each person adds their own key under **Account → SSH keys** (one account can hold several keys); after the instance is created or started, everyone can log in.

**Does the SSH command change after a stop and start?** No. The host name, port and host key stay the same.

**Can I open a public port on an instance?** Not yet. All services are reached through SSH tunnels.

## Related

* [Manage instances](https://support.spiderpool.com/ai/instances.md)
* [SSH keys](https://support.spiderpool.com/ai/ssh-keys.md)
* [Templates](https://support.spiderpool.com/ai/templates.md)
* [Models](https://support.spiderpool.com/ai/models.md)
* [Troubleshooting for renters](https://support.spiderpool.com/ai/troubleshooting.md)
