Get a challenge to prove an SSH key is yours
ssh_key_challengeIssue a one-time signing challenge so a person can prove ownership of an SSH key locally before its public half is registered for connection.
Instructions
Issue a challenge to sign with the private half of a key about to be added, so add_ssh_key registers it as proven: a proven key connects to a computer by id or by name, an unproven one by id only. The answer carries the challenge, its namespace, when it expires, and sign_command: a shell command the PERSON runs on their own machine, replacing the key file it names with their private key file. Never ask for or handle the private key yourself. Send the challenge and the signature it prints to add_ssh_key. A challenge is not a credential: it belongs to this person alone, works once, expires within minutes, and asking for more than eight at once drops the oldest. Refused (403) where adding a key is: a key confined to a workspace, one that expires or is limited to computers, or a holder whose email is not verified.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ssh_key_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||