althonos / althonos/fs.sshfs

Cannot pass look_for_keys via FS URL

Aperta
#52 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
94
Fork
32
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.