Skip to content

Prevent parsing local sshconfig #87

Description

@wrvdklooster

In our config we do not want to use the local sshconfig.

Before we did the following:

cnopts = sftpretty.CnOpts(knownhosts=None)
cnopts.ssh_config = SSHConfig()

In this case however the local sshconfig is still parsed in sftpretty.CnOpts and is then discarded in cnopts.ssh_config = SSHConfig()

As a new workaround I want to use:

cnopts = sftpretty.CnOpts(config=os.devnull, knownhosts=None)

I am not sure if this is a valid solution or if you foresee issues in the future if behaviour is changed in sftppretty.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions