---
title: "Connect SSH tunnel"
method: POST
path: "/ssh/tunnel/connect"
tags: ["SSH Tunnels"]
---

# Connect SSH tunnel

`POST /ssh/tunnel/connect`

Establishes an SSH tunnel connection with the specified configuration.

## Request body

- object
  - `name` string
  - `sourceHostId` integer
  - `tunnelIndex` integer

## Response `200`

Connection request received.

## Other responses

- `400` — Invalid tunnel configuration.
- `401` — Authentication required.
- `403` — Access denied to this host.
- `500` — Failed to connect tunnel.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
