SSH (asyncssh, password or private key) and Telnet in the browser via xterm.js over a WebSocket
Only to devices in the inventory whose address is private (or inside configured ranges) and whose chosen port is open
Credentials typed per session, sent once, never stored or logged
SSH host keys trusted on first use, stored per device; changed key blocks connection with warning; owner can forget key to continue
Idle timeout: 15 minutes
Max 5 concurrent sessions
NETLENS_TERMINAL=off disables it
Only on the local network by default. A request that came through a reverse proxy (it carries X-Forwarded-* headers) is treated as coming from outside, so the terminal does not work on your HTTPS address; open http://<netlens>:8080 on the local network instead. NETLENS_TERMINAL_REMOTE widens this: off (default), lan (also through a proxy when the client address the proxy reports is a local one; the proxy must set X-Forwarded-For, which the recipes above do or do by default) or any. It is an environment variable on purpose: nobody who reaches the web interface from outside can change it, and the on/off switch for the terminal (Settings) can only be changed from the local network either. The device page’s console is in the left column (with a Wide view button) and the top bar has an SSH button that jumps to it.
For a guarantee that does not depend on Netlens, also block it in the reverse proxy, for example nginx location /api/terminal { return 404; } or Caddy respond /api/terminal/* 404. Nginx Proxy Manager: Custom Locations with /api/terminal and an advanced return 404;.
HTTP/HTTPS admin UIs opened via plain links (“Open” next to ports 80/443/…)