Computers
Turn on SSH
Save your public key and turn on Direct SSH for a Linux computer.
POST
Turn on SSH
Saves your public key and turns on Direct SSH. Call it again with new keys to update them: the keys you send replace the keys on the computer. If the answer asks for a restart, the old keys keep working until the computer restarts.
Send the public key only (the contents of a
.pub file). To allow more than one key, put one per line.
When the answer says requires_restart: true, the key could not be put on the running computer yet. Restart the computer once and it is in place.
Then read Get SSH settings for the command to connect.
Linux computers only. Owners and editors of the workspace only; Can chat members and share link guests are refused.Authorizations
Body
application/json
Response
Saved