Switch SSH on or off
Turns SSH on or off for this computer. On, the computer runs an SSH server reachable only through the platform’s jump host, and accepts the keys of every owner and member of the account — not those of a person whose invitation is unaccepted, who is suspended or whose seat is suspended, and none while the account is suspended (see key_count); off, the server stops, the key file is removed and open SSH sessions are closed. No restart either way.
A computer made from a template image that predates SSH cannot run it: the setting is stored and the answer says available: false. Create a new computer from the current template instead.
If the computer’s hypervisor cannot be reached the setting is still stored, the answer says pending: true, and it is delivered when the hypervisor is back — at the latest when somebody next connects or reads this setting.
Connecting to a suspended computer resumes it — a start like any other, charged and refusable by your plan. A stopped computer refuses the connection; start it first.
Requires the member role or higher.
Request
- Base URL: https://app.mandala.computer/api/v1
- URL: https://app.mandala.computer/api/v1/computers/{id}/ssh
- Auth: HTTP bearer
Path parameters
The computer id.
Request body
Response
The setting as stored.
Changes
No recorded changes to this operation across all 1 revision of this API.