---
title: "corestack_ssh_access_get"
url: https://docs.corefinity.com/mcp/tools/corestack_ssh_access_get
type: tool
last_updated: 2026-11-13
feature: access
related:
  - https://docs.corefinity.com/api/reference/access/get-site-access.md
  - https://docs.corefinity.com/guides/sites/access-and-security/connection-details.md
---
# corestack_ssh_access_get

**Show SSH access.** Show how to reach the environment over SSH and SFTP: the host, the port, the users and their keys, the company keys that reach it, the database tunnel line and the known_hosts lines of its host keys. Scope: read.

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

## When to use it

Show how to reach the environment over SSH and SFTP: the host, the port, the users and their keys, the company keys that reach it, the database tunnel line and the known_hosts lines of its host keys.

While `ssh_keys` is on it also answers `logins` (`web` and your own login here), `persons` (every person's login reaching the environment, read-only) and `host_keys`, and the built-in `web` user's keys come from every level (environment, website, company, agency, Legacy, the deploy key), each with its `origin`. `source` keeps its old values (`user`, `company`, `system`).

## Inputs

- `site_id` (integer, ≥ 1, required)

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- `tenant_mismatch` also answers a purged site: its SSH access ended with it, and its port may already be another site's.
- 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).

## Example

```json
{
  "name": "corestack_ssh_access_get",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_ssh_access_get with site_id 4211. (Show SSH access.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/access](https://docs.corefinity.com/api/reference/access/get-site-access.md)
- Guide: [Connection details](https://docs.corefinity.com/guides/sites/access-and-security/connection-details.md)
