fsspec / fsspec/sshfs

Publickey agent specification being loaded as private key

Open
#59 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug effort-medium p2-medium
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:

log.txt

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.