Set the SSH keys

Preview. Replace the public keys that open SSH to the sandbox. SSH takes no password. An open session stays open.

PUT
/sandboxes/{sandbox_id}/ssh

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

sandbox_id*string

The id of the sandbox.

Request Body

application/json
  1. body
keys*array<string>

The public keys, each a line of authorized_keys, at most 16. This list replaces the last one.

Response Body

The SSH access with its new keys.

application/json
  1. response
object?string
Default"sandbox.ssh"
sandbox_id*string
host*string

The SSH host of the sandboxes.

user*string

The user name: the id of the sandbox.

command*string

The command that opens a shell, with one of the keys.

keys*array<string>

The public keys that open SSH to the sandbox.

host_key?string

The host key of SSH. Add <host> <host_key> to ~/.ssh/known_hosts, so ssh trusts the host without a first prompt.

Default""
curl -X PUT 'https://api.munito.ai/sandboxes/v1/sandboxes/string/ssh' \
  -H 'Content-Type: application/json' \
  -d '{
  "keys": [
    "string"
  ]
}'
Example Response
{
  "object": "sandbox.ssh",
  "sandbox_id": "string",
  "host": "string",
  "user": "string",
  "command": "string",
  "keys": [
    "string"
  ],
  "host_key": ""
}