Hermes SSH relay setup
When
Hermes is Desktop-primary (no standing messaging gateway / no API on :8642), the API isn't up yet, or you need a one-off relay. Fleet orchestration uses Hermes API Fleet (:8642) instead.
Steps
- Confirm Tailscale (or equivalent private net) reach from the Grok Bot computer to the Hermes host. No Funnel / public bind.
- Confirm BatchMode SSH works from the Grok Bot computer to that host (
ssh -o BatchMode=yes user@host). - Clone https://github.com/shagghiesuperstar/hermes-grok-bridge onto the Grok Bot computer (or copy the
ssh-relay/tree), keeping it under the computer's persistent folder so it survives a Computer Update. - Add a custom connector (command mode):
- command:
python3 - args: path to
ssh-relay/src/hermes_grok_relay/server.py - env:
HERMES_RELAY_SSH_TARGET=user@host(required)HERMES_RELAY_IDENTITY_NAME=<label>(display label for that Hermes identity)- optional:
HERMES_RELAY_SSH_IDENTITY,HERMES_RELAY_SSH_OPTS,HERMES_RELAY_HERMES_BIN,HERMES_RELAY_TIMEOUT_SEC
- command:
- Do not put SSH private keys, API keys, or live hosts into the marketplace template or git. Keep secrets in local env or a secret manager.
- Optional: create/name a Grok Bot to match the Hermes identity; confine it to this connector.
- Smoke: connector
health, then a trivialask. - Never write Grok-originated content into Hermes memory plugins unless the operator has an explicit memory plan.
Docs: https://github.com/shagghiesuperstar/hermes-grok-bridge (see docs/SSH_RELAY.md).