althonos / althonos/fs.sshfs

Cannot pass look_for_keys via FS URL

Open
#52 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
94
Forks
32
PR merge metrics
No merged PRs in 30d

Description

While it is possible to pass `look_for_keys` to the underlying paramiko Client as follows

```python
from fs.sshfs import SSHFS

my_fs = SSHFS(..., look_for_keys=False)
```

I am unable to do so when using an FS URL:

```python
import fs

my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]?look-for-keys=False")
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]?look_for_keys=False")
```

Looking at `SSHOpener`, this could be remedied by passing `look_for_keys` in when constructing SSHFS, much like e.g. `pkey` is.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.