iterative / dvc

🦉 ML Experiments and Data Management with Git
https://dvc.org
Apache License 2.0
13.37k stars 1.16k forks source link

Forward Agent usage #10342

Closed RomanSteinberg closed 3 months ago

RomanSteinberg commented 3 months ago

I would like to log in to server via ssh, change directory to git+dvc repo, run dvc pull command. Unfortunately, it requires to have ssh private key on the server. I would prefer to use my local ssh private key, because it is more secure and more flexible. I use ForwardAgent: yes option and git pull is successful but dvc pull not.

So, the feature request is to implement forward agent option usage.

skshetry commented 3 months ago

We use asyncssh, and it does support ForwardAgent. DVC should pick your ssh config, without requiring you to do anything.

https://github.com/ronf/asyncssh/blob/a3c3fce0f89e09cccab089adc3a064a95eeaf53c/docs/api.rst#L1813-L1824

If you can debug, that'd be great. :)

skshetry commented 3 months ago

Closing, as this is already supported by asyncssh. Please feel free to reopen if you think there's something we can do.

RomanSteinberg commented 3 months ago

My colleague checked again and everything is working. Thank you @skshetry !