---
title: "Verify TOTP and complete connection"
method: POST
path: "/docker/ssh/connect-totp"
tags: ["Docker"]
---

# Verify TOTP and complete connection

`POST /docker/ssh/connect-totp`

Verifies the TOTP code and completes the SSH connection.

## Request body

- object
  - `sessionId` string
  - `totpCode` string

## Response `200`

TOTP verified, SSH connection established.

## Other responses

- `400` — Session ID and TOTP code required.
- `401` — Invalid TOTP code.
- `404` — TOTP session expired.

---

[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)
