# List SSH users of a web hosting package

> The SSH users of one web hosting package, with how to connect.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: beta
- MCP tool: `manitu_webhosting_web_sshuser_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/webhosting/web/sshuser/list`
- Needs: `service_webhosting`
- Page: /reference/webhosting/web/sshuser/list/

## MCP tool

`manitu_webhosting_web_sshuser_list`

### Description for the model

Lists the SSH users of a web hosting package of the manitu customer account this connection works in, by its site_id from manitu_webhosting_list: for each its username, description, status, whether it can log in now, when it expires, shell and disk space limit. Login is by public key only; the keys of one user are in manitu_webhosting_web_sshuser_get. connection says how to connect (SSH on port 22, the server's host key fingerprints). An SSH user reaches the whole package. count_max is how many SSH users the package allows.

### Arguments

- `site_id` (integer | string, required) - The site_id from manitu_webhosting_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_webhosting_web_sshuser_list",
    "arguments": {
      "site_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/webhosting/web/sshuser/list`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `site_id` (integer | string, required) - The site_id from manitu_webhosting_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Response

In `data`; the rest of the body as on every call.

- `ssh_user_list` (array of object, required)
  - `ssh_user_list[].username` (string, required) - The user name to log in with (ssh<number>) - what the other SSH user tools take.
  - `ssh_user_list[].description` (string | null, required) - What the customer wrote about it (his description), null if nothing - not its name or user name.
  - `ssh_user_list[].status` (string, required) - active, or inactive (switched off by the customer, kept for later). (one of `"active"`, `"inactive"`)
  - `ssh_user_list[].is_usable_now` (boolean, required) - It can log in right now: active and not expired.
  - `ssh_user_list[].expires_at` (string | null, required) - When the SSH user expires. From this moment on it can no longer be used (the moment itself is excluded); null: without end. (format `date-time`)
  - `ssh_user_list[].shell` (string | null, required) - The shell: bash, zsh, or git (git only - for pushing and pulling repositories). (one of `"bash"`, `"zsh"`, `"git"`, `null`)
  - `ssh_user_list[].quota_mb` (integer | null, required) - Disk space in MB the files it owns may take; null: no limit of its own (the package's applies).
  - `ssh_user_list[].created_at` (string | null, required) - When it was created. (format `date-time`)
  - `ssh_user_list[].last_login_at` (string | null, required) - Its last login, null if never. (format `date-time`)
- `count_max` (integer | null, required) - How many SSH users the package allows.
- `connection` (object, required)
  - `connection.host` (string | null, required) - The host to connect to - the web server of the package.
  - `connection.method_list` (array of object, required) - The ways to connect: SSH on port 22.
    - `connection.method_list[].protocol` (string, required) - (one of `"ssh"`)
    - `connection.method_list[].port` (integer, required)
    - `connection.method_list[].is_encrypted` (boolean, required)
    - `connection.method_list[].is_recommended` (boolean, required)
  - `connection.auth` (string, required) - public_key_only: log in with a key from the user's ssh_key_list - a password does not work. (one of `"public_key_only"`)
  - `connection.host_key_list` (array of object, required) - The server's host keys - on the first connection the SSH client shows one of these fingerprints; it must match.
    - `connection.host_key_list[].algorithm` (string, required)
    - `connection.host_key_list[].fingerprint_sha256` (string, required) - As the SSH client shows it, e.g. "SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8".

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST 'https://api.manitu.de/v1/webhosting/web/sshuser/list' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"site_id":12345}'
```

## Example result

```json
{
  "ssh_user_list": [
    {
      "username": "string",
      "description": "Example",
      "status": "active",
      "is_usable_now": true,
      "expires_at": "2026-10-23T12:00:00+02:00",
      "shell": "bash",
      "quota_mb": 1,
      "created_at": "2026-10-23T12:00:00+02:00",
      "last_login_at": "2026-10-23T12:00:00+02:00"
    }
  ],
  "count_max": 1,
  "connection": {
    "host": "string",
    "method_list": [
      {
        "protocol": "ssh",
        "port": 1,
        "is_encrypted": true,
        "is_recommended": true
      }
    ],
    "auth": "public_key_only",
    "host_key_list": [
      {
        "algorithm": "string",
        "fingerprint_sha256": "string"
      }
    ]
  }
}
```
