Skip to content

feat(sdk): ssh for jobs - #58

Merged
lianakoleva merged 2 commits into
mainfrom
feat/job-ssh
Jul 29, 2026
Merged

lianakoleva merged 2 commits into
mainfrom
feat/job-ssh

Conversation

@tejapulagam

@tejapulagam tejapulagam commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds lightning job ssh so you can SSH into a running job from the CLI, the same way lightning studio ssh works for Studios.

  • Works for single jobs and multi-machine jobs
  • For multi-machine jobs, --rank selects the machine (defaults to 0)
  • Reuses the existing SSH key setup from studio SSH

Usage

lightning job ssh my-job
lightning job ssh my-job --teamspace org/teamspace

# multi-machine job (defaults to rank 0)
lightning job ssh my-distributed-job --teamspace org/teamspace
lightning job ssh my-distributed-job --rank 1 --teamspace org/teamspace

Note:
mmt ssh added separately in #60

@justusschock

Copy link
Copy Markdown
Member

we do have lightning mmt, so i think lightning job should not take a rank argument, but rather we should have lightning mmt ssh which take it.

@tejapulagam

Copy link
Copy Markdown
Contributor Author

we do have lightning mmt, so i think lightning job should not take a rank argument, but rather we should have lightning mmt ssh which take it.

I removed the rank argument here and will follow up with an mmt ssh command

@lianakoleva
lianakoleva merged commit 2d9b0d8 into main Jul 29, 2026
24 checks passed
@lianakoleva
lianakoleva deleted the feat/job-ssh branch July 29, 2026 20:18
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