iterative / dvc

🦉 ML Experiments and Data Management with Git

Home Page:https://dvc.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forward Agent usage

RomanSteinberg opened this issue · comments

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.

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. :)