The instance cannot be reused by another user
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:
- Write directly to the
/home/ubuntu/.ssh/authorized_keys - 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.
This issue is stale because it has been open for 30 days with no activity.
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.
This issue is stale because it has been open for 30 days with no activity.