116 lines
6.2 KiB
Markdown
116 lines
6.2 KiB
Markdown
# Fixed Hermes SSH sandbox — installed 2026-10-16
|
|
|
|
Container: Hermes-Sandbox. Image: hermes-sandbox-ssh:local, derived from the
|
|
published official Nous desktop sandbox. Exact upstream digest: base-image.txt.
|
|
The derivative adds OpenSSH, key-only login for existing user pn (UID/GID 1000),
|
|
persistent SSH host keys and an entrypoint. The base's desktop/browser tools and
|
|
sudo policy for pn remain. No Docker socket, host root, or broad appdata mount
|
|
is given to this sandbox. Root SSH and password authentication are disabled.
|
|
|
|
Unraid-managed label: net.unraid.docker.managed=dockerman; official Hermes icon.
|
|
Template: my-Hermes-Sandbox.xml in dockerMan/templates-user. Standard bridge,
|
|
restart unless-stopped, not privileged. Live port mapping is 192.168.1.2:2224 to
|
|
22. The generic Unraid template exposes host port 2224; review interface binding
|
|
if recreating through GUI (Docker defaults to all interfaces).
|
|
|
|
## Exactly three persistent mounts
|
|
|
|
Under /mnt/nvme-storage/appdata/Hermes-Sandbox:
|
|
|
|
- config -> /config: authorized public client key and private server host keys.
|
|
- home -> /home/pn: user tools, settings, virtual environments.
|
|
- workspace -> /workspace: projects and results.
|
|
|
|
No /opt/data paths on the Unraid root filesystem. /opt/data inside Hermes-Agent
|
|
still correctly refers to that agent's existing persistent appdata mount.
|
|
Server config directory 0755; authorized_keys owned pn mode 0600; private host
|
|
key directory 0700/root. Entry point reapplies these modes. Removed PAM loginuid
|
|
session requirement only inside derivative: Unraid container could authenticate
|
|
but pam_open_session failed. Other PAM authentication/session rules remain.
|
|
|
|
Hermes config.yaml terminal fields:
|
|
|
|
```yaml
|
|
backend: ssh
|
|
ssh_host: 192.168.1.2
|
|
ssh_user: pn
|
|
ssh_port: 2224
|
|
ssh_key: /opt/data/ssh/id_ed25519_sandbox
|
|
cwd: /workspace
|
|
```
|
|
|
|
Dedicated key generated privately in Hermes appdata/ssh; never put in Git.
|
|
Private pre-switch config backup: Hermes appdata/backups/ssh-sandbox-20261016.
|
|
19 MCP configurations and unrelated settings preserved. Hermes restarted once
|
|
for activation, not Deck/OpenCode or other production containers.
|
|
|
|
## Verification
|
|
|
|
- Actual Hermes SSHEnvironment initialized with file synchronization enabled;
|
|
synthetic execute returned 0 with /workspace, Python 3.13.16 and Node 26.11.1.
|
|
- SCP uploaded an artificial file, Python appended known text remotely, downloaded
|
|
result matched exactly; temporary files removed.
|
|
- Synthetic home/workspace markers survived sandbox restart and were removed.
|
|
- Final actual terminal_tool call using saved configuration returned exit_code 0,
|
|
user pn and cwd /workspace. No model inference needed.
|
|
- Hermes dashboard HTTP 200, all 19 MCP entries retained, socket absent.
|
|
- All three bind sources and Unraid managed label inspected.
|
|
- Full computer-use/interactive desktop/browser workflow and model-driven
|
|
attachment exchange were NOT tested. Mere presence of desktop tools is not
|
|
an end-to-end GUI verification. Fresh-host restore was not performed.
|
|
|
|
## Build, update, restore
|
|
|
|
Public Dockerfile, sshd_config, start.sh and Unraid template are in this directory.
|
|
Copies of the build files are also in sandbox appdata/build. Rebuild on Unraid:
|
|
|
|
```sh
|
|
docker build --build-arg BASE_IMAGE="$(cat base-image.txt)" \
|
|
-t hermes-sandbox-ssh:local .
|
|
```
|
|
|
|
Use the recorded upstream digest for reconstruction. To update deliberately,
|
|
review/pull a new upstream desktop image, record its digest, rebuild this small
|
|
SSH derivative, then recreate only Hermes-Sandbox through the saved Unraid
|
|
configuration. Existing host keys, home and workspace must remain bound.
|
|
A generic registry update of the local tag cannot rebuild this derivative;
|
|
Unraid may report version availability unknown. This does not change its managed
|
|
status. Runtime apt installs outside mounts do NOT survive image recreation;
|
|
put fixed system dependencies in this Dockerfile and user venvs under home.
|
|
|
|
Back up complete Hermes-Agent and Hermes-Sandbox appdata with the Unraid appdata
|
|
backup, including agent client key/config and sandbox server host keys. Treat as
|
|
private credentials; encrypt backup and never add these files to Git. Athena's
|
|
separate host backup does not automatically cover Unraid. Restore appdata first,
|
|
build derivative, restore template, preserve uid/gid 1000 for home/workspace,
|
|
start sandbox, then validate key-only SSH and file roundtrip before Hermes use.
|
|
|
|
For a future native Debian Athena installation this remains an optional Unraid
|
|
client worker, not an implicit native Deck dependency. On a different worker
|
|
host provision Docker/OpenSSH explicitly, configure its actual address/storage
|
|
root and backup, and repeat the tests; do not copy Unraid-specific absolute paths
|
|
blindly. No native Debian fresh-host restore is claimed by this container test.
|
|
|
|
## Desktop capture verified later on 2026-10-16
|
|
|
|
Actual Hermes runtime.start() over the SSH terminal successfully launched Xfce /
|
|
Xvnc at :20, 1440x900, placement terminal:ssh. A thumbnail was captured, visually
|
|
inspected as the actual Xfce desktop, and computer_use capture(action=capture,
|
|
mode=vision,app=screen) returned 1440x900 pixels. With normal private dotenv loading,
|
|
auxiliary.vision successfully described the visible wallpaper, top panel/date and
|
|
bottom terminal/file dock; error null. No credential changes were necessary.
|
|
The first standalone capture test omitted Hermes' private dotenv loader and its
|
|
vision request returned 401; the corrected same-environment test passed.
|
|
The first plain CLI screen start also failed to obtain a terminal environment;
|
|
warming the normal terminal tool first allowed runtime.start to succeed. Do not
|
|
claim this establishes a fresh-process CLI-start fix.
|
|
|
|
No VNC TCP port published: Xvnc uses a private Unix RFB socket relayed through SSH.
|
|
Left the requested desktop running; normal Hermes idle handling applies.
|
|
This verifies internal screenshot acquisition and auxiliary image understanding,
|
|
not browser navigation, clicking/typing, the live Desktop client viewer or a
|
|
complete GUI task. Existing older statements above about no GUI verification are
|
|
superseded only for this specific capture/vision test. Driver v0.28.2 emitted an
|
|
X11 overlay-channel warning but screenshot and analysis both succeeded; no driver
|
|
update or other software upgrade performed.
|