CorefinityCorefinityDocs
Open the Control PanelControl Panel
SSH access · 16 of 22

corestack_ssh_key_remove

Revoke an SSH public key.

Scope writeAsks you to confirmRuns as a taskNo secrets returned
On this page

When to use it

Remove an SSH key. Type its fingerprint as confirm_fingerprint exactly as corestack_ssh_keys_list shows it. Long-running: completes only once every environment it reached has stopped accepting it; until then it reads removing. remaining_sources lists other grants that still allow the same key.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_ssh_key_remove with key_id 70120. (Revoke an SSH public key.) Tell me what it returned.

Inputs

confirm_fingerprintstringRequiredConfirmation

The key's SHA256: fingerprint. Up to 60 characters.

key_idintegerRequired

At least 1.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_ssh_key_remove",
  "arguments": {
    "key_id": 70120,
    "confirm_fingerprint": "SHA256:KWUX5AFVTL2ZqPyXmKlo/rqDZd4jSw9JZSRPePj1S0M"
  }
}

If it is refused

ReasonWhat to do
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
forbiddenA company's key and the person's role holds neither the Delete Company SSH Keys nor the Edit Company SSH Keys permission (either one removes it). The message names both and says an owner of the company can grant them in Roles; details.permission is deleteCompanySSHKeys. Nothing is changed.
switched_offSSH keys are not switched on for this object yet.
confirm_mismatchThe typed fingerprint is not this key's.
ssh_managed_on_another_environmentThis CoreStack Enterprise environment runs on the same server as another environment whose SSH the Control Panel manages, so its own keys are added, changed and removed there; the refusal's managed_on names that environment ({id, name}).
enterprise_panel_onlySSH keys for CoreStack Enterprise environments are managed in the Control Panel only at the moment.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT