# SSH Access to the Google and Oracle VMs

> **Status:** CURRENT
> **Last verified:** 2026-11-28

Use either Oracle method below for current-state inspection. The local
`oracle-eb` SSH alias is **stale as configured** and must not be used by itself:
it resolves to the retired Oracle arrangement rather than the current Oracle
host. The direct command is canonical; the alias-override command is a verified
alternative that replaces the stale host and user while reusing the alias's
configured identity options.

## Direct access

Google production origin:

```bash
ssh -i ~/.ssh/gcloud_eb zxc-funnel@35.209.206.38
```

Oracle Hermes host:

```bash
ssh -i ~/.ssh/oracle_eb ubuntu@129.225.74.53
```

Oracle alternative — alias with explicit overrides:

```bash
ssh -o HostName=129.225.74.53 -o User=ubuntu oracle-eb
```

This method was verified on 2026-11-29: it reaches `dify-a1` as `ubuntu`, with
`hermes-gateway.service` active and `/home/ubuntu/.hermes/config.yaml` readable.
It is useful when you want to retain the alias's configured key/authentication
options without using its stale host/user values. Do not run bare
`ssh oracle-eb`.

The direct commands identify the current users and keys. The Oracle
alias-override alternative reuses configured identity options. Do not substitute
the old Oracle address or run the bare stale alias.

## Paths by host

### Google `ebstudy-vm`

User: `zxc-funnel`

| Purpose | Path / unit |
| --- | --- |
| Tech documentation root | `/home/zxc-funnel/tech.eb2026` |
| Tech static service | `tech-static.service` |
| Legacy bridge working directory | `/home/zxc-funnel/zxc` |
| Legacy bridge script | `/home/zxc-funnel/zxc/tbridge.py` |
| Legacy bridge unit | `/etc/systemd/system/ebtbridge.service` |
| Knowledge Sea API source | `/home/zxc-funnel/sea-api` |
| Knowledge Sea API service | `sea-api.service` |

Google hosts the current VM-based sites and applications. Its application
services listen on loopback and are exposed through the Cloudflare tunnel.

### Oracle `dify-a1`

User: `ubuntu`

| Purpose | Path / unit |
| --- | --- |
| Hermes home | `/home/ubuntu/.hermes` |
| Hermes install | `/home/ubuntu/.hermes/hermes-agent` |
| Hermes executable | `/home/ubuntu/.hermes/hermes-agent/.hermes/bin/hermes` |
| Hermes user unit | `/home/ubuntu/.config/systemd/user/hermes-gateway.service` |
| Hermes configuration | `/home/ubuntu/.hermes/config.yaml` |
| Hermes secret file | `/home/ubuntu/.hermes/.env` |
| Observed SQLite state | `/home/ubuntu/.hermes/state.db` |
| Owner memory | `/home/ubuntu/.hermes/memories/` |

Oracle runs the Hermes gateway under the required/current owner-only policy;
see [Security](security.md#owner-only-control). The effective
`TELEGRAM_ALLOWED_USERS` value and environment precedence over YAML were not
independently inspected. It is not the Google site origin. Hermes state and
memory files are sensitive; inspect metadata only unless a task explicitly
authorizes protected content access.

## Read-only inspection examples

Append a quoted command to either Oracle SSH invocation. These examples do not
restart services, deploy files, or change configuration. Each compound remote
command starts with `set -eu` so a failed earlier check stops the inspection.

Google service and listener check:

```bash
ssh -i ~/.ssh/gcloud_eb zxc-funnel@35.209.206.38 'set -eu
hostname
systemctl show tech-static.service \
  -p LoadState -p ActiveState -p SubState -p UnitFileState \
  -p FragmentPath -p ExecStart -p WorkingDirectory -p MainPID
systemctl show ebtbridge.service \
  -p LoadState -p ActiveState -p SubState -p UnitFileState \
  -p FragmentPath -p ExecStart -p WorkingDirectory -p MainPID
ss -ltnp "( sport = :8087 )"'
```

Oracle Hermes check:

```bash
ssh -i ~/.ssh/oracle_eb ubuntu@129.225.74.53 'set -eu
hostname
systemctl --user show hermes-gateway.service \
  -p LoadState -p ActiveState -p SubState -p UnitFileState \
  -p FragmentPath -p ExecStart -p WorkingDirectory -p MainPID -p NRestarts
/home/ubuntu/.hermes/hermes-agent/.hermes/bin/hermes --version
stat -c "%A %U:%G %n" \
  /home/ubuntu/.hermes/config.yaml \
  /home/ubuntu/.hermes/.env \
  /home/ubuntu/.hermes/state.db'
```

For `.env` files, inspect key names only with a parser that never emits values.
Never source the file casually. For SQLite, use read-only mode
(`file:/path?mode=ro`) and do not print user records.

## SSH safety rules

- **Never open interactive editors** such as `vim`, `nano`, or `emacs` over SSH.
  Edit locally, review the diff, and use an approved deployment workflow.
- **Never open interactive pagers or live monitors** such as `less`, `more`, or
  `top` over SSH. Use noninteractive commands and `--no-pager` where applicable.
- Do not run `tail -f` or stream raw journals during routine checks; logs can
  contain user content or secrets.
- Do not restart services, deploy, change DNS/ingress, or purge caches from a
  read-only inspection command.
- Keep Google and Oracle paths separate. A Google path is not an Oracle path,
  and a bare stale alias is not evidence of current topology; use the direct
  command or the explicit override.
