SSH Tunneling

Some environments are not configured or limit access (firewall or otherwise) to computer nodes within an intranet. They are also very useful for running Jupyter notebooks inside containers when working remotely. When running a container with a service or application exposed on a port, such as , remote access must be enabled on the remote system to that port on the DGX system. The following steps use PuTTY to create SSH tunnel from a remote system into the DGX system. If you are using an SSH utility, one can set up tunneling via the -L option.
Note: A PuTTY SSH tunnel session must be up, logged in, and running for tunnel to function. SSH tunnels are commonly used for the following applications (with listed port numbers).
Table 1. Commonly used applications for SSH tunnels
Application Port Notes
5000 If multiple users, each selects own port
VNC Viewer 5901, 6901 5901 for VNC app, 6901 for web app
To create an SSH Tunnel session with PuTTY, perform the following steps:
  1. Run the PuTTY application.
  2. In the Host Name field, enter the host name you want to connect to.
  3. In the Saved Sessions section, enter a name to save the session under and click Save.
  4. Click Category > Connection, click + next to SSH to expand the section.
  5. Click Tunnels for Tunnel configuration.
  6. Add the port for forwarding.
    1. In the Source Port section, enter 5000, which is the port you need to forward for .
  7. In the Destination section, enter localhost:5000 for the local port that you will connect to.
  8. Click Add to save the added Tunnel.
  9. In the Category section, click Session.
  10. In the Saved Sessions section, click the name you previously created, then click Save to save the added Tunnels.
To use PuTTY with tunnels, perform the following steps:
  1. Run the PuTTY application.
  2. In the Saved Sessions section, select the Save Session that you created.
  3. Click Load.
  4. Click Open to start session and login. The SSH tunnel is created and you can connect to a remote system via tunnel. As an example, for , you can start a web browser and connect to http://localhost:5000.