{
  "slug": "hf-spaces-ssh-opens-a-dev-mode-ssh-session-504ba9065eb8",
  "title": "hf spaces ssh opens a Dev Mode SSH session",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-28T15:08:07.000Z",
  "announced_at": "2026-05-28T15:08:07.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For debugging or inspecting a Space, run `hf spaces ssh <owner>/<space>` to connect to its Dev Mode container; if Dev Mode is off, the CLI prompts to enable it. Use `--dry-run` to print the SSH command or `-i <path>` to forward a specific identity file.",
    "examples": [
      "hf spaces ssh <owner>/<space>",
      "hf spaces ssh <owner>/<space> --dry-run",
      "hf spaces ssh <owner>/<space> -i <identity-file-path>"
    ],
    "gotchas": [
      "Version: v1.17.0",
      "SPACE_ID (required): Space ID, such as `<owner>/<space>`.",
      "--dry-run: Print the SSH command instead of running it.",
      "-i, --identity-file PATH: Identity file path forwarded to `ssh -i`.",
      "--auto: Enable Dev Mode without prompting if it is not already enabled.",
      "Prerequisite: Dev Mode must be running on the Space; the CLI prompts to enable it if disabled.",
      "Prerequisite: Register your SSH public key in Hugging Face user settings before connecting.",
      "The SSH session connects to a Space's Dev Mode container.",
      "If Dev Mode is not enabled, the CLI prompts to enable it.",
      "The SSH public key must be registered in HF user settings."
    ]
  },
  "why_it_matters": "Debug or inspect a Space's Dev Mode container over SSH.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.17.0",
    "https://huggingface.co/docs/huggingface_hub/guides/cli",
    "https://huggingface.co/docs/huggingface_hub/main/en/package_reference/cli",
    "https://huggingface.co/docs/hub/en/spaces-dev-mode"
  ],
  "rank": 0.98041,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-9ff1dd3f17704b87-1:gate",
    "evidence_hash": "bad0de8b817b1083289bad47ec823477fc61cc7daff55867454c52bf6dd77cad"
  },
  "review": {
    "draft_hash": "8ed66aa868ae2c9dc6ba3d83d95777948e2232fadfcea8b1e4bf4c985c93a108",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
