Skip to content

Publickey agent specification being loaded as private key #59

Description

@weberbr

I use an agent which holds many private keys and specify which private key to use for which remote by specifying IdentityFile <key path>.pub per host in my ssh config. This setup appears to be currently broken or unsupported with sshfs. For example:

Given an ssh config:

Host myhost
    Hostname myhostname
    IdentityFile ~/.ssh/mykey.pub

and a minimal example:

import fsspec
with fsspec.open("ssh://myhost/myfile.txt") as f:
    f.read()

Gives the following traceback:

log.txt

It's not immediately clear to me whether the issue is here or in asyncssh

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffort-mediumDays: needs design or broader testsp2-mediumMedium priority: real issue with workarounds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions