Open an authenticated SSH WebSocket to a running node
const url = 'https://example.com/v1/spot/nodes/example/ssh';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/spot/nodes/example/ssh \ --header 'Authorization: Bearer <token>'Use nodus spot ssh NODE_ID with the private key matching a public SSH key installed on the node. Keep the private key on your machine. This endpoint upgrades HTTP to a WebSocket carrying binary SSH bytes; it does not return JSON or run a shell command itself. Send a bearer token with organization-wide spot:write access in the Authorization header. Project-restricted keys, browser Origin headers and query parameters are not accepted. The connection closes after node release or credential revocation is detected.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Header Parameters
Section titled “ Header Parameters ”Organization to select with a user token; API keys are already scoped.
Responses
Section titled “ Responses ”Switching protocols to a binary WebSocket carrying SSH
Spot error or platform Status before the WebSocket upgrade
object
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}Authentication failed
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}Spot error or platform Status before the WebSocket upgrade
object
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}Spot error or platform Status before the WebSocket upgrade
object
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}Spot error or platform Status before the WebSocket upgrade
object
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}Request rate limit or daily stream egress quota exceeded
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}Spot error or platform Status before the WebSocket upgrade
object
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}default
Section titled “ default ”Spot error or platform Status before the WebSocket upgrade
object
object
Example
{ "apiVersion": "v1", "kind": "Status", "status": "Failure"}