Skip to content

[Remote SSH] Add a parameter allow_agent #4186

Closed
@gcoter

Description

@gcoter

Hello,

For some reason, when I use dvc pull or dvc push with an SSH remote, sometimes I get an error like this:

ERROR: unexpected error - No existing session

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 or ask_password. For instance, I could add the line allow_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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions