sshfs icon indicating copy to clipboard operation
sshfs copied to clipboard

Publickey agent specification being loaded as private key

Open weberbr opened this issue 1 week ago • 1 comments

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

weberbr avatar Feb 18 '25 21:02 weberbr