-
Notifications
You must be signed in to change notification settings - Fork 222
[Bug]: --ssh-identity Flag in dstack apply is Ignored #2317
Copy link
Copy link
Closed
Labels
Description
Steps to reproduce
- Run the following command to apply a deployment using a custom SSH identity file:
dstack apply -f app.dstack.yaml --ssh-identity ./id_rsa
- Observe that instead of using the specified SSH identity file (
./id_rsa),dstackdefaults to the user’s key at:/home/aleksandr/.dstack/ssh/id_rsa - This occurs even though
--ssh-identitywas explicitly provided in the command.
Actual behaviour
dstack applyignores the--ssh-identityflag and continues using the default key at/home/aleksandr/.dstack/ssh/id_rsa.- Repo configuration does not contain the correct path to the SSH identity file.
- This issue can be traced to repo_config, which does not correctly store the specified identity file.
Expected behaviour
- The
--ssh-identityflag should override the default key and use the specified SSH key (./id_rsa). - The correct SSH key should be passed to the run configuration, allowing for proper authentication.
dstack version
0.18.41
Server logs
Additional information
- My goal is to use my own SSH key so I can connect from any other server or user using:
dstack attach <run_name> --ssh-identity ./id_rsa
- Since
dstack applydoes not set the correct SSH key,dstack attachdoes not work as expected when trying to connect from another server.
Reactions are currently unavailable