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.- Open a terminal and run
ssh-keygento generate a key pair. - Navigate to your
.sshdirectory. The public key has.pubin 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, replacingEDGE_NODE_NAME with the name of your node and YOUR_PUBLIC_KEY with the contents of your public key file.
Activate the Session
- In the Edge Infrastructure Services console sidebar, click Infrastructure > Fleet > Nodes.
- Click the name of the target node.
- On the node details page, click the Remote Console button in the hero bar.
- 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.
-
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
- Open a terminal and navigate to the directory where the script was downloaded.
-
Make the script executable.
-
Run the script.
The script pulls the
lfedge/eve-edgeview:latestDocker image and connects to the dispatcher. When the connection succeeds, output similar to the following appears. -
Note the device IP address shown in the Device IPs field (for example,
172.16.8.124). -
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).
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:- In the Edge Infrastructure Services console, open the node details page.
- Click Remote Console and then Continue to activate a new session.
- Download the new run-script from the download icon.
-
In your terminal, find the latest script file.
- Run the new script with the device IP and port.
- 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.~/.edgeview/config:
How the Edge View Script Works
When you run the Edge View script, the following steps occur:- Docker image launch: The script pulls
lfedge/eve-edgeview:latestfrom Docker Hub. This image contains the Edge View client, which handles authentication and tunneling. - JWT authentication: The script injects a short-lived JWT token that proves your identity to Edge Infrastructure Services and confirms your access permissions.
- 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.
- 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:- Run a simple EVE-OS command in the SSH terminal (for example,
uname -a) to confirm the connection is live. - 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.