Skip to content

Add option to disable AutoAddPolicy for SSH backend and use known_hosts and ssh config file #1683

Closed
@mxmlnkn

Description

@mxmlnkn

AutoAddPolicy makes the user vulnerable to man-in-the-middle attacks. I think, it should not be added by default and/or there should be an option to disable/enable it. If the user-wide ~/.ssh/known_hosts file is correctly loaded, then the AutoAddPolicy should likely not be necessary in the first place. For SSH, this policy change needs to be enabled with ssh -o StrictHostKeychecking=no ... or via the SSH config file.

Loading the SSH config file is yet another feature request of mine. For example, currently, things like ssh cluster works because I have configured an alias for that in my ~/.ssh/config, but fsspec.open("ssh://cluster") does not work because paramiko does not automatically load the usual OpenSSH files even though it has helper APIs to load them manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions