corestack_ ssh_ quick_ setup
Set up SSH for an agent.
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
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.
webmepublic_keystringRequired
Up to 20,000 characters.
site_idintegerRequired
At least 1.
Example call
{
"name": "corestack_ssh_quick_setup",
"arguments": {
"site_id": 4211,
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGd1aWRlLWV4YW1wbGUta2V5LW9ubHktbm90LXJlYWw [email protected]",
"label": "Agent key"
}
}If it is refused
| Reason | What to do |
|---|---|
pin_refused | login: "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_elsewhere | Another 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_arguments | The 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_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |
The same task elsewhere
Was this helpful?