Publickey agent specification being loaded as private key
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 89
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
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:
It's not immediately clear to me whether the issue is here or in asyncssh
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the minimal fsspec.open example with the provided SSH config and inspect log.txt. Trace how sshfs handles the IdentityFile ending in .pub and determine whether the behavior belongs in sshfs or asyncssh; done means the agent-based public-key configuration works or its unsupported status is clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100