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

pget -n (and mirror --use-pget-n) fail for SSH auth via gpg-agent #447

Open
rlue opened this issue Apr 22, 2018 · 3 comments
Open

pget -n (and mirror --use-pget-n) fail for SSH auth via gpg-agent #447

rlue opened this issue Apr 22, 2018 · 3 comments

Comments

@rlue
Copy link

rlue commented Apr 22, 2018

I use gpg-agent to handle SSH key authentication. It's rather complicated to set up (I wrote a blog post about it here), but the upshot is that I successfully use my GPG keys for SSH authentication, in both ssh and lftp.

More specifically, I can connect to a server with lftp, and I can download regular files (via pget) or whole directories (via mirror) without a hitch. However, if I try to initiate a multi-segmented download (via pget -n or mirror --use-pget-n), then lftp borks on trying to initiate the parallel connections. Here's the relevant debug output:

---> sending a packet, length=25, type=5(READ), id=189
<--- got a packet, length=150, type=2(VERSION), id=0
---- protocol version set to 3
---- path on wire is `/media/sdu1/thrillho/private/transmission/data/debian.iso'
---> sending a packet, length=114, type=3(OPEN), id=1
<--- got a packet, length=37, type=105(ATTRS), id=2
---- file info: size=1453978621, date=Mon Aug  1 04:37:06 2016
---> sending a packet, length=25, type=5(READ), id=18
<--- got a packet, length=150, type=2(VERSION), id=0
---- protocol version set to 3
---- path on wire is `/media/sdu1/thrillho/private/transmission/data/debian.iso'
---> sending a packet, length=114, type=3(OPEN), id=1
<--- Permission denied, please try again.
---- Disconnecting
pget-chunk: debian.iso: Login failed: Login incorrect
pget: chunk[11] error: Login failed: Login incorrect
---- Disconnecting
---- Disconnecting
---- Disconnecting
---- Disconnecting
---- Disconnecting

These errors do not occur when authenticating via actual SSH keys or username / password.

@lavv17
Copy link
Owner

lavv17 commented Apr 25, 2018

I think it may be a problem with gpg-agent.

@rlue
Copy link
Author

rlue commented Apr 26, 2018

Hm. Could you suggest a way to debug the problem a little further, so that I could submit a useful bug report to the GnuPG team?

@lavv17
Copy link
Owner

lavv17 commented Apr 26, 2018 via email

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