-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Remote SSH] Add a parameter allow_agent #4186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@gcoter Sounds good! Let's do that! Unfortunately, we don't have the capacity for this right now as well 🙁 So it might have to wait until someone has time for it. |
@gcoter Btw, i think you can already do that using your ssh config:
|
Hi @efiop, thanks for your answer! I tried to modify |
I will try to make the PR myself |
Might be that paramiko doesn't read it by itself from ssh config and we need to extract it ourselves (luckily there is |
@efiop Actually, I managed to add a parameter |
@gcoter It is actually extremely easy to implement. Here we have dvc/dvc/remote/ssh/__init__.py Line 90 in 71c4787
so all you need is just
and just pass it to the connection.
We would be happy with any approach that you actually will use 🙂 But I feel like the proper way is to indeed start with ForwardAgent, just because it is not paramiko-specific and people will likely have it already. So really this is your choice here, we will be happy with one or both, as long as they are tested and used by you or other users 🙂 |
@efiop Sorry for my late response, I will try to implement your idea when I have time 🙂 |
@gcoter No worries :) Thank you so much! 🙏 |
Hi @efiop, I have worked on the two approaches but it seems to me that having an option |
Oh, I didn't realise that before. Makes me think if there is some other problem lurking in there. Do you have a verbose log by any chance? If |
This parameter is passed to paramiko. See http://docs.paramiko.org/en/stable/api/client.html?highlight=allow_agent#paramiko.client.SSHClient.connect for more details. Fixes iterative#4186
This parameter was created to fix iterative/dvc#4186
This parameter is passed to paramiko. See http://docs.paramiko.org/en/stable/api/client.html?highlight=allow_agent#paramiko.client.SSHClient.connect for more details. Fixes #4186
* remote modify [ssh]: Add doc about the parameter 'allow_agent' This parameter was created to fix iterative/dvc#4186 * Update content/docs/command-reference/remote/modify.md * minor: apply inline code * Update content/docs/command-reference/remote/modify.md Co-authored-by: Ruslan Kuprieiev <[email protected]> Co-authored-by: Ivan Shcheklein <[email protected]> Co-authored-by: Jorge Orpinel <[email protected]>
Hello,
For some reason, when I use
dvc pull
ordvc push
with an SSH remote, sometimes I get an error like this:This is only on one specific machine that I use. On other machines, I don't have this problem.
To fix it, I have to give the parameter
allow_agent=False
to paramiko. If I edit manually the line https://github.com/iterative/dvc/blob/master/dvc/remote/ssh/__init__.py#L148 to add it, it works.I was thinking that DVC could pass it through its config file, similarly to
port
orask_password
. For instance, I could add the lineallow_agent = false
in.dvc/config.local
. I wanted to make a PR for that but I am too busy currently to do this myself :(What do you think?
The text was updated successfully, but these errors were encountered: