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.ncOctant 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
- Install
octant-serveon the remote host in~/bin,~/.cargo/bin, or another directory on yourPATH. - Verify that
ssh hpcconnects 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
| URL | Target path |
|---|---|
ssh://hpc/~/runs/output.nc | runs/output.nc relative to your home directory on hpc |
ssh://hpc/scratch/me/run.zarr | Absolute path /scratch/me/run.zarr on hpc |
ssh://me@hpc.example.org:2222/data/x.grib2 | Connects 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 4hConnection 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-serveprocess. If Octant exits unexpectedly, the remote server shuts itself down after 30 minutes of inactivity.
Troubleshooting
| Error message | Resolution |
|---|---|
octant-serve is not installed on hpc | Install octant-serve on the host in ~/bin, ~/.cargo/bin, or a directory in PATH |
octant-serve on hpc is too old; update it | Replace the remote binary with the latest version of octant-serve |
no ssh program found | Install an OpenSSH client on your local machine |
Permission denied | Non-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.