Skip to Content
Octant

Open over SSH

Open datasets on a remote server or HPC cluster directly in desktop Octant using an ssh:// URL.

Desktop Octant can open datasets on any remote host accessible via ssh. Enter an ssh:// URL in the Dataset panel or pass it on the command line:

octant ssh://hpc/~/runs/output.nc

Octant connects using your local ssh client, starts octant-serve on the remote host, and streams the dataset over the SSH tunnel. Every supported format works over SSH.

Prerequisites

  1. Install octant-serve on the remote host in ~/bin, ~/.cargo/bin, or another directory on your PATH.
  2. Verify that ssh hpc connects cleanly from a terminal on your local machine.

Octant invokes your system ssh binary directly, so all settings in ~/.ssh/config—such as host aliases, identity keys, SSH agent forwarding, and ProxyJump—apply automatically.

URL syntax

URLTarget path
ssh://hpc/~/runs/output.ncruns/output.nc relative to your home directory on hpc
ssh://hpc/scratch/me/run.zarrAbsolute path /scratch/me/run.zarr on hpc
ssh://me@hpc.example.org:2222/data/x.grib2Connects as user me on SSH port 2222

Spaces and other special characters in paths must be URL-encoded (for example, %20 for a space).

Passwords and multi-factor authentication

When you launch Octant from a terminal, ssh can prompt for passwords or multi-factor authentication (MFA) codes directly in that terminal. When launched from a desktop icon, however, Octant has no attached terminal for interactive prompts, so authentication must succeed non-interactively—either through a key loaded in your SSH agent or by reusing an existing multiplexed connection.

For clusters that always require interactive MFA, add connection multiplexing to ~/.ssh/config on your local machine, then log in once from a terminal with ssh hpc before opening datasets in Octant:

Host hpc
  ControlMaster auto
  ControlPath ~/.ssh/control-%r@%h:%p
  ControlPersist 4h

Connection lifecycle

  • Shared tunnel: Each ssh:// dataset uses a single SSH connection, regardless of how many plots read from it.
  • Automatic reconnection: If your computer wakes from sleep or switches networks, Octant reconnects automatically within about a minute and resumes loading data without losing your view.
  • Automatic cleanup: Removing the dataset (once no plots reference it) or quitting Octant terminates both the SSH connection and the remote octant-serve process. If Octant exits unexpectedly, the remote server shuts itself down after 30 minutes of inactivity.

Troubleshooting

Error messageResolution
octant-serve is not installed on hpcInstall octant-serve on the host in ~/bin, ~/.cargo/bin, or a directory in PATH
octant-serve on hpc is too old; update itReplace the remote binary with the latest version of octant-serve
no ssh program foundInstall an OpenSSH client on your local machine
Permission deniedNon-interactive login failed; see Passwords and multi-factor authentication

Zarr directories without consolidated metadata are not yet supported over ssh://. Either consolidate their metadata first, or open them in a browser using octant-serve.

Web browsers cannot open ssh:// URLs directly; use octant-serve with SSH port forwarding instead.

On this page