dstack icon indicating copy to clipboard operation
dstack copied to clipboard

The instance cannot be reused by another user

Open Egor-S opened this issue 1 year ago • 3 comments

Since SSH keys are added to the instance only during creation, other users cannot add their keys later. dstack server must update SSH keys on job submission (docker image submission, to be precise). There are multiple ways to do so:

  1. Write directly to the /home/ubuntu/.ssh/authorized_keys
  2. Delegate this task to the shim (or to the runner in container computes)

Additionally, we should consider removing old keys from the instance to match the behavior with brand-new instances.

Egor-S avatar Feb 13 '24 14:02 Egor-S

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Mar 15 '24 01:03 peterschmidt85

I have thought about this task. The best way, in my opinion, is to delegate updating SSH keys to the shim (point 2) for each task.

TheBits avatar Mar 27 '24 07:03 TheBits

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Apr 27 '24 01:04 peterschmidt85