---
title: "corestack_ssh_host_keys_get"
url: https://docs.corefinity.com/mcp/tools/corestack_ssh_host_keys_get
type: tool
last_updated: 2026-11-13
feature: ssh-keys
related:
  - https://docs.corefinity.com/guides/sites/access-and-security/ssh-keys.md
---
# corestack_ssh_host_keys_get

**Show SSH host keys.** Shows an environment's SSH host keys: the current and next fingerprints, the known_hosts lines to trust and any rotation in progress. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

An environment's SSH host keys: the current and next fingerprints, the `known_hosts` lines to trust, and the latest rotation (`rotation.rotation_id`, `rotation.state`). After corestack_ssh_host_keys_rotate, call this again to follow the rotation: `staging`, `offered`, `promoting` and `verifying` are still moving; `done`, `cancelled`, `aborted` and `failed` are final. CoreStack Enterprise host keys are Corefinity's and read-only.

## Inputs

- `enterprise_env_id` (integer): a CoreStack Enterprise environment's id (`environment.id` in corestack_ssh_keys_list). Give this or `site_id`.
- `site_id` (integer): a CoreStack or CoreCluster environment row, as the other corestack tools take it. Give this or `enterprise_env_id`.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "enterprise_env_id": {
      "description": "A CoreStack Enterprise environment's id (environment.id in corestack_ssh_keys_list); for CoreStack or CoreCluster give site_id.",
      "minimum": 1,
      "type": "integer"
    },
    "site_id": {
      "description": "A CoreStack or CoreCluster environment row's site_id.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).
- `switched_off`: SSH keys are not switched on for this object yet.
- `enterprise_panel_only`: SSH keys for CoreStack Enterprise environments are managed in the Control Panel only at the moment.

## Example

```json
{
  "name": "corestack_ssh_host_keys_get",
  "arguments": {
    "enterprise_env_id": 1733
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_ssh_host_keys_get with enterprise_env_id 1733. (Show SSH host keys.) Tell me what it returned.
```

## The same task elsewhere

- Guide: [SSH keys](https://docs.corefinity.com/guides/sites/access-and-security/ssh-keys.md)
