Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publickey agent specification being loaded as private key #59

Open
weberbr opened this issue Feb 18, 2025 · 1 comment
Open

Publickey agent specification being loaded as private key #59

weberbr opened this issue Feb 18, 2025 · 1 comment

Comments

@weberbr
Copy link

weberbr commented Feb 18, 2025

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

@skshetry
Copy link
Collaborator

I did find a discussion regarding this upstream:
ronf/asyncssh#504 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants