Steps to reproduce:
- Make sure the current user doesn't have permission to write to
~/.ssh/config
- Run
dstack server
- Create
.dstack.yml
- Run
dstack run .
When attaching to the run, the CLI will fail with a permission error when adding Include to ~/.ssh/config.
A possible solution:
- Make sure the CLI doesn't rely on the
Include statement for attaching to the run.
- Display a clear error message telling how the error will affect the user experience and how to fix it:
2.1. Make sure the user has write permission
or
2.3. When using ssh <run name> include -F <client dstack SHH config path>