yay icon indicating copy to clipboard operation
yay copied to clipboard

yay not passing through SSH key passphrase entry(/pinentry) prompt?

Open ido opened this issue 3 years ago • 5 comments

Affected Version

yay v10.2.3 - libalpm v13.0.0

Describe the bug

When using yay to update AUR packages (e.g. yay -Syua), if a passphrase is needed for my ssh key to access AUR (which is a separate IdentityFile configured in my .ssh/config), then yay does not pass through the passphrase prompt and instead seems to hang. I think that's what's going on, given that yay -> git -> ssh is in pstree where it gets stuck. There is an SSH passphrase prompt happening somewhere, but it seems to not have access to my tty.

Reproduction Steps

  1. ssh-add -D # remove all identities from ssh-agent
  2. yay -Syua # update from AUR with yay when configured for AUR via git+ssh.

Expected behavior

I expected to be prompted to enter my SSH key passphrase. Note that this only occurs with inline pinentry/passphrase entry (the default), not with pinentry GUI modes, when using git+ssh.

Output

$ yay -Syua                                                                                                                [20/20]
:: Searching AUR for updates...
[...snip...]
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==>
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:16] [...snip...]
[...waits forever without further output...]

ido avatar Jun 28 '21 18:06 ido

Does this happen with --nodevel?

Morganamilo avatar Jun 28 '21 18:06 Morganamilo

Problem persists with --nodevel. (To be clear, once I ssh-add my AUR ssh key to my ssh-agent, everything works fine.)

As a side note, yay also seems to barf if the SSH connection is reset/interrupted, and does not retry the git clone. (That's harder to reproduce, though.)

ido avatar Jun 28 '21 19:06 ido

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 26 '21 21:10 stale[bot]

Problem persists.

On Tue, Oct 26, 2021 at 14:39 stale[bot] @.***> wrote:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub https://github.com/Jguer/yay/issues/1538#issuecomment-952348609, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAU4RURRNBA7YVMTJOGLADUI4NYRANCNFSM47OPV2UA .

ido avatar Oct 26 '21 22:10 ido

Same problem here, did you find a way to avoid yay asking for passphrase?

dannyMendozaa avatar Jul 23 '22 16:07 dannyMendozaa