create_ssh_key
Создаёт новый SSH-ключ в аккаунте. Требуются имя, тело публичного ключа и флаг is_default (будет ли ключ выбираться по умолчанию при создании сервера).
This record as markdown: /tools/timeweb-mcp/create-ssh-key.md
What create_ssh_key does on Timeweb
AI agents use create_ssh_key to create or update resources in Timeweb, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Timeweb environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
body | string | Yes | ОБЯЗАТЕЛЬНОЕ ПОЛЕ - Тело публичного SSH-ключа (например: 'ssh-rsa AAAA... user@host') |
name | string | Yes | ОБЯЗАТЕЛЬНОЕ ПОЛЕ - Название SSH-ключа |
is_default | boolean | Yes | ОБЯЗАТЕЛЬНОЕ ПОЛЕ - Выбирать ли этот ключ по умолчанию при создании новых серверов |
Parameters from the server's own tool schema.
Why create_ssh_key is rated Medium
This tool creates SSH keys in a user account, which is a reversible data modification (Write category). The severity is high because SSH keys are critical security credentials—a compromised creation capability could allow an attacker to inject malicious SSH public keys into a victim's account, enabling unauthorized access to deployed servers.
From the tool's definition Tool name is 'create_ssh_key' and description states it 'Создаёт новый SSH-ключ' (creates a new SSH key) in the account. The description specifies parameters: name, public key body, and is_default flag.
Risk signalsAccepts raw HTML/template content (body)
Attacks that exploit this kind of access
The rule that runs create_ssh_key safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Timeweb, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For create_ssh_key, this is the rule to start with:
create_ssh_key stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Timeweb, apply this rule, and every create_ssh_key call is checked against it from then on.
Questions about create_ssh_key
Создаёт новый SSH-ключ в аккаунте. Требуются имя, тело публичного ключа и флаг is_default (будет ли ключ выбираться по умолчанию при создании сервера). It is categorised as a Write tool in the Timeweb MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
create_ssh_key accepts 3 parameters: body, name, is_default. Required: body, name, is_default. The full parameter table on this page comes from the server's own tool schema.
Register the Timeweb MCP server in PolicyLayer and add a rule for create_ssh_key: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Timeweb. Nothing to install.
create_ssh_key is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the create_ssh_key rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for create_ssh_key. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
create_ssh_key is provided by the Timeweb MCP server (timeweb-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Timeweb, and thousands of servers like it.
This server
Across the catalogue