Connect DGX Spark
Connect your NVIDIA DGX Spark using Brev Connect in the console, then use the Brev CLI for SSH access, team sharing, and port forwarding.
Prerequisites
- An NVIDIA DGX Spark running Linux with systemd
- A Brev account (sign up at brev.nvidia.com)
- An Owner or Admin role in the target organization for console registration
sudoaccess on the DGX Spark- An SSH server running on the DGX Spark (default port:
22)
Connect Your DGX Spark
Run the registration and SSH setup commands on your DGX Spark. You can open the Brev Console from another computer.
Name your compute in Brev Connect
Open the Brev Console and select the organization that should own the machine. On the compute page, select Connect a local device (or Register Compute in the older layout) to open Brev Connect.
Enter a compute name such as my-dgx-spark.
Choose a Brev Personal API key
Create a new Personal API key or supply an existing, unexpired Read & Write key for the selected organization. Save the key for the SSH setup commands below; a newly created key is only shown once.
See API Keys for details.
Run the generated command on your DGX Spark
Copy the command from the dialog and run it in a terminal on your DGX Spark. It installs the Brev CLI and runs brev register --name ... --api-key ..., using the organization associated with the key. No separate browser login is needed for registration.
The command contains your API key. Keep it private.
Make the installed CLI available to subsequent commands in this terminal:
Alternative: register directly with the CLI
Connect your DGX Spark
Start interactive registration:
Enter a name such as my-dgx-spark, select your organization, and confirm. To supply the name and organization directly, use brev register --name my-dgx-spark --org my-org, replacing my-org with your organization name. Complete any login or sudo password prompts.
Registration installs NetBird for secure connectivity, detects your hardware, and makes the machine visible in your organization. It requires sudo access and installs NetBird as a systemd service. Registration does not enable SSH or grant anyone access.
Enable SSH Access
Run these commands on your DGX Spark, replacing <your-brev-api-key> with the key used during registration. Passing the key to brev register does not save it for later commands.
If you used the manual CLI registration option without an API key, omit --api-key from the commands below and complete any login prompts.
Your DGX Spark is now connected and accessible through Brev.
Connecting to Your DGX Spark
On the computer you want to connect from, install the Brev CLI, log in with your Brev user account, and select the organization where you registered the Spark. Replace my-org with your organization name:
Use a user login for SSH, rather than API-key login. If this computer already uses API-key authentication, follow Return to User Login first.
Sharing with Your Team
From your computer, grant SSH access to a teammate, completing any login prompts:
Select the organization, machine, SSH port, org member, and Linux user to grant access. Once granted, they can follow Connecting to Your DGX Spark from their own computer, using their own Brev login.
To revoke access later:
Port Forwarding
With Jupyter running on port 8888 on your DGX Spark, run this on your local computer:
Open http://localhost:8888 in your local browser.
To also forward TensorBoard, run a separate command while TensorBoard is running on port 6006 on the Spark:
Use one command per port mapping. Repeating --port in the same command only uses the last value.
Next Steps
- Managing Brev Connect — Detailed guide on sharing, port forwarding, and deregistering
- CLI Reference — Full command reference for Brev Connect