- VS Code to browse and edit code files directly from your local IDE.
- ParaView to stream rendered visualizations from a remote workspace to your desktop client.
- Use the Remote - SSH extension if you import your VS Code extensions into Cursor.
Prerequisites
To use SSH with Domino workspaces, make sure you have the following:-
Your Domino workspace is based on an SSH-enabled environment. For example,
openssh-serveris installed. The following docker instructions can be used to support a custom compute environment with SSH:If you do not see the checkbox to enable SSH in your workspace, reach out to Domino Support for assistance. -
sshdis running in the workspace. Domino automatically startssshdwhen starting the workspace. -
You have installed the Dom CLI to authenticate and connect via SSH.
- This Dom CLI is for authenticating SSH only, and is distinct from the Domino Command Line Interface (CLI).
-
To install the Dom CLI:
- Launch a workspace. Under Additional settings, ensure that Enable SSH access is selected, then click Launch.
- Once the workspace is running, click the Settings icon in the left navigation pane.
- Under the SSH connection instructions, look for Step 1, then follow the Dom CLI toolkit link to install it.
- You have started a workspace and have the Workspace ID (available in the workspace settings pane or under Show Details).
-
Your local machine supports SSH and the necessary development tools:
- For VS Code: the Remote - SSH extension
- For ParaView: a local installation of ParaView Desktop
-
For most IDEs compatibility, make sure to include a Domino SSH configuration file into your local SSH configuration.
- For Linux/Mac users, just add the line
Include ~/.domino/ssh/configto your~/.ssh/configfile.
- For Linux/Mac users, just add the line
Connect with VS Code
Using VS Code’s Remote - SSH extension, you can access a Domino workspace directly from your local editor. This enables you to browse, edit, execute, and debug files. Run the Domino connect command on your local machine (replace<workspace_id> and <your-domino-url> accordingly):
- An SSH command
- A path to a configuration file
-
Copy the path to the config and include it in your
~/.ssh/configfile.- Or you can add the
~/.domino/ssh/configinto the Remote.SSH: ConfigFile settings on the Remote SSH extension.
- Or you can add the
- Open VS Code. From the sidebar, choose Remote Explorer > SSH.
-
Select your workspace from the list (as configured by the
dom connectoutput).
Connect with ParaView
ParaView allows offloading rendering to a remote server and streaming visualization results to your local machine. Domino workspaces can serve as that remote backend.- Ensure your workspace environment has ParaView installed and SSH is enabled.
-
Start the ParaView server inside the workspace:
-
In the environment’s pre-run script:
pvserver - Or manually with the terminal.
-
In the environment’s pre-run script:
11111.
-
Establish an SSH connection from your local machine:
-
Add port forwarding to expose the remote ParaView server locally. If you’ve included this config in your default SSH file, the
-Fflag is optional: - Connect from your local ParaView Desktop:
- Go to File > Connect > Add Server.
-
Fill in the following:
- Server Name: any name
- Server Type: Client / Server
-
Host:
localhost -
Port:
11111
- Click Configure > Startup Type: Manual > Save.
- Select the server and click Connect.
Connect with PyCharm
Run the Domino connect command on your local machine (replace<workspace_id> and <your-domino-url> accordingly), and add the --port argument to specify a custom local port:
- An SSH command
- A path to a config file. Make sure this file is included in your local SSH configuration file.
- Open PyCharm and create a new Project under Remote Development > SSH.
-
Set Username to the workspace linux user (same as the
-largument ofdom connect, for exampleubuntu). -
Set Host to the
<workspace_id>. -
Set Port to the one you specified in the
--portargument ofdom connect, for example2223. - Follow the wizard steps to connect and open your files.
-
Make sure to use the same
--portnext time you wish to connect to the same workspace so that you can use the same PyCharm configuration. -
If you need to access multiple workspaces at the same time, use different
--portvalues for each so you can reference them in different PyCharm configurations.
Custom TLS certificate authority
If your Domino instance is using custom CAs in the TLS certificate signatures, make sure you also install the certificates to your local environment. On Mac you can usesudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain your_certificate.crt. On windows you need to import the certificate into the Trusted Root Certification Authorities store using the Certificate Manager tool.
Next steps
- Learn how to manage compute environments in Domino, whether you need to create an environment, use one provided by Domino, or modify an existing environment.
- Enable package persistence in an environment to save time by keeping installed packages across workspace sessions.