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.
In our config we do not want to use the local sshconfig.
Before we did the following:
In this case however the local sshconfig is still parsed in
sftpretty.CnOptsand is then discarded incnopts.ssh_config = SSHConfig()As a new workaround I want to use:
I am not sure if this is a valid solution or if you foresee issues in the future if behaviour is changed in
sftppretty.