Skip to main content

Introduction

This procedure explains how to use the Edge View client script to establish a secure tunnel from your laptop to a node. This method gives you the full set of Edge View diagnostic commands, including file inspection, network monitoring, and system health checks. It requires Docker (or WSL v2 on Windows) on your local machine. The integrated GUI method in the Edge Infrastructure Services console (described in Configure Edge View with the GUI) provides a subset of Edge View capabilities. Use the advanced method when you need to run diagnostic commands not available in the console, or when you prefer a script-based workflow.

Prerequisites

  • You have the SysManager or SysAdmin role in your enterprise. See Manage Roles.
  • Docker installed on your laptop. On Windows, Docker Desktop or WSL v2 is required.
  • ZCLI installed and authenticated. See Get Started With ZCLI for setup instructions.
  • A project with an Edge View policy assigned to the target node.

Set Up the Edge View Policy

The target node must be in a project that has the Edge View policy enabled. If the policy is already active, skip to Generate SSH Keys. For step-by-step instructions and a full field reference, see Configure Project Policies — Edge View Policy. To use ZCLI instead, see Configure Edge View with the CLI. At minimum, enable the Edge View Enabled toggle and turn on Access EVE-OS.

Generate SSH Keys

Skip this section if you already have SSH keys on your laptop.
  1. Open a terminal and run ssh-keygen to generate a key pair.
  2. Navigate to your .ssh directory. The public key has .pub in the filename. The private key has no extension.

Enable SSH on the Node

To connect to the node with SSH after the tunnel is established, enable SSH access by registering your public key on the node. Run the following ZCLI command, replacing EDGE_NODE_NAME with the name of your node and YOUR_PUBLIC_KEY with the contents of your public key file.

Activate the Session

  1. In the Edge Infrastructure Services console sidebar, click Infrastructure > Fleet > Nodes.
  2. Click the name of the target node.
  3. On the node details page, click the Remote Console button in the hero bar.
  4. In the Remote Access notice dialog, click Continue to activate the Edge View session. Wait 30 to 60 seconds for the session status to show as activated.
  5. Click the Download Script icon (shown near the Remote Console button when the session is active). The script is saved to your Downloads folder with a name similar to the following.
    Alternative — download via ZCLI: If you prefer a command-line workflow, start your ZCLI session with a local directory mounted, then enable Edge View on the node. ZCLI automatically copies the script into the mounted directory.

Run the Edge View Script

  1. Open a terminal and navigate to the directory where the script was downloaded.
  2. Make the script executable.
  3. Run the script.
    The script pulls the lfedge/eve-edgeview:latest Docker image and connects to the dispatcher. When the connection succeeds, output similar to the following appears.
  4. Note the device IP address shown in the Device IPs field (for example, 172.16.8.124).
  5. Run the script again, appending the device IP and port 22 to open an SSH tunnel.
    The output confirms the tunnel is active and shows the local port mapping.

Establish an SSH Session

With the tunnel active, SSH into the node using the local port mapping shown in the preceding script output (0.0.0.0:9001 in the example).
Replace id_ed25519 with the filename of your SSH private key. Run this command from the directory that contains the private key, or provide an absolute path. A successful connection shows a prompt similar to the following.

Re-Establish a Session After Token Expiry

JWT tokens expire based on the Maximum Session Duration setting in the Edge View policy. When a token expires, the SSH session disconnects. To re-establish access:
  1. In the Edge Infrastructure Services console, open the node details page.
  2. Click Remote Console and then Continue to activate a new session.
  3. Download the new run-script from the download icon.
  4. In your terminal, find the latest script file.
  5. Run the new script with the device IP and port.
  6. Open a new SSH session using the port mapping from the output.

Restrict Access with SSH Key Authentication

To limit Edge View access to specific users, configure SSH key-based access control. The node verifies each command’s signature against stored public keys, and logs the public key information, which you can view by selecting the View Events icon on the node detail page. To enable this, add one or more public keys to the node configuration using the following ZCLI command.
You can add multiple keys by separating them with a newline. On your laptop, specify the corresponding private key path for Edge View to use when signing commands. Add the following line to ~/.edgeview/config:
Alternatively, set the environment variable:
SSH key authentication for Edge View requires EVE-OS 15.0.0 or later.

How the Edge View Script Works

When you run the Edge View script, the following steps occur:
  1. Docker image launch: The script pulls lfedge/eve-edgeview:latest from Docker Hub. This image contains the Edge View client, which handles authentication and tunneling.
  2. JWT authentication: The script injects a short-lived JWT token that proves your identity to Edge Infrastructure Services and confirms your access permissions.
  3. WebSocket tunnel: The container opens a WSS connection to the Edge Infrastructure Services dispatcher. This firewall-friendly approach works in networks with strict outbound filtering.
  4. Remote access provisioning: Depending on the session type, you receive an SSH terminal into the node or a local port mapping to a service running on the node.

Verify the Configuration

After establishing a session:
  1. Run a simple EVE-OS command in the SSH terminal (for example, uname -a) to confirm the connection is live.
  2. Go to the node details page in Edge Infrastructure Services and select the View Events button in the page header. An event entry appears for the Edge View session, confirming the session is logged.

Next Steps

Edge View and Remote Access Overview

Background on the Edge View security model and policy settings.

Configure Edge View with the GUI

The integrated console approach to remote access.

Configure Edge View with the CLI

ZCLI-based session management.