Skip to content

docs: document SSH access for Jobs#2557

Open
Wauplin wants to merge 3 commits into
mainfrom
docs-jobs-ssh
Open

docs: document SSH access for Jobs#2557
Wauplin wants to merge 3 commits into
mainfrom
docs-jobs-ssh

Conversation

@Wauplin

@Wauplin Wauplin commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Document hf jobs ssh ...

Depends on:

⚠️ Wait for huggingface_hub 1.20 to be released first.

Details

Adds an SSH section to docs/hub/jobs-configuration.md with:

  • --ssh flag (CLI) / ssh=True (Python API) to make a Job's container reachable over SSH
  • hf jobs ssh <job_id> command
  • ssh://<job_id>@ssh.hf.jobs endpoint
  • job.status.ssh_url attribute
  • access requirements: write access to the Job's namespace + an SSH public key registered at https://huggingface.co/settings/keys
  • port forwarding with ssh -L / -R (e.g. access a TensorBoard running in a training Job, or let the Job reach a local resource)

SSH is not billed.
SSH not supported for scheduled jobs.

🤖 Generated with Claude Code

Document the new --ssh / ssh=True option that opens an interactive SSH
session into a running Job, plus the new `hf jobs ssh <job_id>` command
(with --dry-run and -i/--identity-file). Includes CLI and Python
examples, the ssh://<job_id>@ssh.hf.jobs endpoint format, and access
requirements (write access to the namespace + a registered SSH key).

SSH is not billed on top of the job's hardware price.

Complements #2551 which covers exposing ports.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@julien-c julien-c left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this use Expose Ports under the hood? (which would make sense i guess)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants