> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorlake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Disable SSH

> Stop the sandbox's internal SSH daemon.

Stop the sandbox's internal SSH server.

<Note>
  This endpoint is normally managed by Tensorlake's SSH proxy. Most users should disconnect their SSH client or use the CLI instead of calling it directly.
</Note>

The public sandbox proxy authenticates your API key and injects the internal forwarded-auth headers required by the daemon.

## Endpoint

```http theme={null}
POST /api/v1/ssh/disable
```

## Example Request

```bash theme={null}
curl -X POST https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/ssh/disable \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY"
```

## Response

Tensorlake returns `200 OK` with the updated SSH daemon status:

```json theme={null}
{
  "enabled": false,
  "pid": null,
  "host_key_fingerprint": "SHA256:..."
}
```


## OpenAPI

````yaml post /api/v1/ssh/disable
openapi: 3.1.0
info:
  title: Tensorlake API
  description: >-
    Tensorlake Cloud APIs for Sandboxes, Document Ingestion, and Serverless
    Workflows
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.tensorlake.ai/
security:
  - bearerAuth: []
tags:
  - name: Tensorlake Cloud API
    description: >-
      Tensorlake Cloud APIs for Sandboxes, Document Ingestion, and Serverless
      Workflows
paths:
  /api/v1/ssh/disable:
    servers:
      - url: https://{identifier}.sandbox.tensorlake.ai
        description: >-
          Example sandbox proxy host for a specific running sandbox. For
          programmatic access, use the sandbox's `ingress_endpoint`.
        variables:
          identifier:
            default: example-sandbox
            description: The sandbox ID or sandbox name.
    post:
      tags:
        - sandbox-ssh
      summary: Disable SSH
      description: Stop the sandbox's internal SSH daemon.
      operationId: sandbox_ssh_disable
      responses:
        '200':
          description: SSH daemon status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxSshStatus'
        '401':
          description: Authenticated sandbox-proxy forwarding is required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProxyError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxProxyError'
components:
  schemas:
    SandboxSshStatus:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
        pid:
          type:
            - integer
            - 'null'
          format: int32
        host_key_fingerprint:
          type:
            - string
            - 'null'
    SandboxProxyError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````