Mint certificate-backed OpenSSH relay access
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/ssh-access"
payload = { "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@example" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/ssh-access \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@example"
}
'{
"certificate": "<string>",
"host": "ssh.nullspace.io",
"port": 22,
"user": "root",
"expires_at": "2023-11-07T05:31:56Z",
"access_id": "<string>",
"command": "<string>",
"host_key": "<string>"
}
Machines
Mint certificate-backed OpenSSH relay access
Issues a short-lived OpenSSH user certificate for a caller-provided public key. The certificate is scoped to this machine, user, caller, and relay capabilities. The API credential may mint access but is not itself sufficient to log in to the relay; the OpenSSH client must prove possession of the matching private key.
POST
/
v1
/
machines
/
{id}
/
ssh-access
Mint certificate-backed OpenSSH relay access
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/ssh-access"
payload = { "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@example" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/ssh-access \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... user@example"
}
'{
"certificate": "<string>",
"host": "ssh.nullspace.io",
"port": 22,
"user": "root",
"expires_at": "2023-11-07T05:31:56Z",
"access_id": "<string>",
"command": "<string>",
"host_key": "<string>"
}
Body
application/json
Response
SSH access material and generated OpenSSH command