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

corestack_ssh_quick_setup

Set up SSH for an agent.

Scope writeRuns as a taskNo secrets returned
On this page

When to use it

Add your public key to the environment's web user and get ready-made ssh, sftp, rsync and database tunnel lines with the host keys to trust. The key works once the change has applied (the task completes then).

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_ssh_quick_setup with site_id 4211, public_key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGd1aWRlLWV4YW1wbGUta2V5LW9ubHktbm90LXJlYWw [email protected], label Agent key. (Set up SSH for an agent.) Tell me what it returned.

Inputs

labelstring

The key's name in the control panel. Default: "Agent key". Up to 255 characters.

loginstring

web (default) is the environment's shared web user. me makes the key your personal key and answers your own login as user, with the lines built for it; a personal key works everywhere you have access, so a token limited to some sites cannot use me.

webme
public_keystringRequired

Up to 20,000 characters.

site_idintegerRequired

At least 1.

Example call

tools/call
{
  "name": "corestack_ssh_quick_setup",
  "arguments": {
    "site_id": 4211,
    "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGd1aWRlLWV4YW1wbGUta2V5LW9ubHktbm90LXJlYWw [email protected]",
    "label": "Agent key"
  }
}

If it is refused

ReasonWhat to do
pin_refusedlogin: "me" with a token limited to some sites (a personal key reaches every environment you reach); ask for "Everything in your company", or use web.
ssh_handle_missing/ ssh_login_unavailable: you have no login of your own yet, or it cannot be used on this environment now (login: "me"); use web.
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.
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.
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