Skip to content

SSH Access

axern ssh opens an interactive terminal into a running allocation through the gateway’s SSH edge. It uses the local OpenSSH client and the SSH endpoint and identity file from the selected context.

Terminal window
axern ssh <allocation-id>

Run a one-off command instead of an interactive shell by appending it after the target:

Terminal window
axern ssh <allocation-id> -- uname -a
axern ssh <allocation-id> --shell /bin/sh

Useful flags:

  • --user <name>: container user for the session.
  • --identity-file <path> / --ssh-endpoint <host:port>: override the context connection, also configurable with AXERN_SSH_IDENTITY_FILE and AXERN_SSH_ENDPOINT.
  • --ssh-option <option>: pass an extra OpenSSH option; may be repeated.
  • --strict-host-key-checking: enforce the local known_hosts policy. The default is relaxed checking for ephemeral sandbox hosts; use strict checking for shared deployments and review host-key rotation before trusting a new gateway.

For reaching a local TCP service from inside the allocation, use a reverse tunnel.