Skip to content

[Bug] Handle permission error when adding Include to ~/.ssh/config #937

@peterschmidt85

Description

@peterschmidt85

Steps to reproduce:

  1. Make sure the current user doesn't have permission to write to ~/.ssh/config
  2. Run dstack server
  3. Create .dstack.yml
  4. 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:

  1. Make sure the CLI doesn't rely on the Include statement for attaching to the run.
  2. 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions