Connect DGX Spark

View as Markdown

Connect your NVIDIA DGX Spark to Brev to enable SSH access, share it with your team, and forward ports — all through the Brev CLI.

Prerequisites

Connect Your DGX Spark

1

Install the Brev CLI

Install the Brev CLI on your DGX Spark:

curl -fsSL https://brev.nvidia.com/install | bash
2

Log in to Brev

Authenticate with your Brev account:

brev login
3

Connect your DGX Spark

Start interactive registration:

brev register

Enter a name such as my-dgx-spark, select your organization, and confirm. For registration without prompts, use brev register --name my-dgx-spark --org my-org, replacing my-org with your organization name.

This command performs three steps:

  1. Installs NetBird — A mesh VPN agent for secure connectivity
  2. Profiles hardware — Detects your GPU, CPU, RAM, storage, and interconnects
  3. Connects to Brev — Makes the machine visible in your organization

This requires sudo access. NetBird is installed as a systemd service.

4

Enable SSH access

Enable SSH so you and your team can connect:

brev enable-ssh

When prompted, select the Linux user and enter the SSH port (default is 22). This enables SSH on the machine; grant access to your Brev user next.

5

Grant yourself SSH access

brev grant-ssh

Select your organization, machine, SSH port, and your own Brev user. Use the same Linux user you selected for brev enable-ssh, then confirm.

Your DGX Spark is now connected and accessible through Brev.

Connecting to Your DGX Spark

From any machine with the Brev CLI installed:

brev shell my-dgx-spark

Sharing with Your Team

Grant SSH access to a teammate:

brev grant-ssh

Select the organization, machine, SSH port, org member, and Linux user to grant access. Once granted, they can log in with brev login and connect with brev shell my-dgx-spark from their own machine.

To revoke access later:

brev revoke-ssh

Port Forwarding

Forward ports from your DGX Spark to your local machine:

# Forward Jupyter
brev port-forward my-dgx-spark --port 8888:8888
# Forward multiple ports
brev port-forward my-dgx-spark --port 8888:8888 --port 6006:6006

Then open http://localhost:8888 in your browser.

Next Steps