Description
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.