Connect to Your Workspace via SSH
This guide will walk you through setting up Secure Shell (SSH) access for your workspaces. This allows you to securely connect to and interact with your development environment directly from your local terminal.
Prerequisites
Before attempting to connect, ensure you have an SSH key pair generated on your local machine. If you need to generate one, open your local terminal and run:
ssh-keygen -t ed25519 -C "[email protected]"
Add Your SSH Key (via UI)
Navigate to User Settings > SSH Keys and click on Add SSH Key to add or upload your public key.
Adding a pulbic SSH key in the UI.
Alternative: Add Your SSH Key (via Public API)
Register a New Public Key
Prerequisites
- A valid Public API Token to authenticate your key management requests. See Public API documentation for details.
Send a POST request to upload your public key. Replace <YOUR_API_TOKEN> with your actual authentication token and paste your public key string into the publicKey field.
- Endpoint:
POST https://<YOUR_DOMAIN>/api/ssh/keys - Headers:
Authorization: Bearer <YOUR_API_TOKEN>Content-Type: application/json
curl -X POST https://<YOUR_DOMAIN>/api/ssh/keys \
-H "Authorization: Bearer <YOUR API TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "publicKey": "<YOUR PUBLIC KEY>" }'
View Your Registered Keys
To see a list of all public keys currently authorized to access your workspaces, send a GET request:
curl -X GET https://<YOUR_DOMAIN>.com/api/ssh/keys \
-H "Authorization: Bearer <YOUR_API_TOKEN>"
Remove an SSH Key
If you need to revoke access for a specific key, issue a DELETE request:
curl -X DELETE https://<YOUR_DOMAIN>.com/api/ssh/keys \
-H "Authorization: Bearer <YOUR API TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"publicKeyFingerprint": "<YOUR PUBLIC KEY FINGERPRINT>"
}'
Connect to Your Workspace
Once your public key is registered, you can find your workspace's connection string directly in the platform.
- Open your active workspace.
- Click the editor dropdown in the top-right toolbar.
- Select Connect via SSH.
- Copy the connection string from the modal and paste it into your local terminal.
Copying the connection string from the Workspace.
Example command:
ssh -J <dcId>.ssh.<your_domain> user@<workspaceId>
The data center ID can be found in team settings (admins only).
Connect from a Local IDE
Refer to your IDE's official documentation for SSH remote development setup: