Passphrase prompt for pinentry is not displayed on the same tab/pane #12072

Closed
opened 2026-01-31 03:05:38 +00:00 by claunia · 2 comments
Owner

Originally created by @ealap on GitHub (Jan 15, 2021).

Environment

Windows build number: 19042.746
Windows Terminal version: 1.5.3242.0
WSL: fedoraremix 33

Any other software?
gpg (GnuPG) 2.2.25
pinentry 1.1.0

Steps to reproduce

  1. Enable SSH access using a GPG key for authentication. I followed this how-to article.
  2. Open a new WSL session in a new tab or new pane and open any Vim session
  3. Go back to previous tab and test SSH access with GPG key authentication. In my case, I tested my GPG key in Github
ssh -T git@github.com

Expected behavior

  • Pinentry should spawn asking for passphrase credential.

Actual behavior

  • Pinentry spawns on the other tab/pane.
    image

The case is the same even when pinentry-curses is used instead of pinentry-tty

Originally created by @ealap on GitHub (Jan 15, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 19042.746 Windows Terminal version: 1.5.3242.0 WSL: fedoraremix 33 Any other software? gpg (GnuPG) 2.2.25 pinentry 1.1.0 ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. Enable SSH access using a GPG key for authentication. I followed this [how-to article](https://opensource.com/article/19/4/gpg-subkeys-ssh). 2. Open a new WSL session in a new tab or new pane and open any Vim session 3. Go back to previous tab and test SSH access with GPG key authentication. In my case, I tested my GPG key in Github ``` ssh -T git@github.com ``` # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> - Pinentry should spawn asking for passphrase credential. # Actual behavior <!-- What's actually happening? --> - Pinentry spawns on the other tab/pane. ![image](https://user-images.githubusercontent.com/15620712/104700075-97285300-574e-11eb-93ce-4087767ef964.png) The case is the same even when pinentry-curses is used instead of pinentry-tty
Author
Owner

@zadjii-msft commented on GitHub (Jan 15, 2021):

Well this is mental. But it looks like this is actually an issue in pinentry-tty:

Looks like this is just something that can happen when working with multiple terminal instances and pinentry.

@zadjii-msft commented on GitHub (Jan 15, 2021): Well this is mental. But it looks like this is actually an issue in `pinentry-tty`: * https://unix.stackexchange.com/questions/280879/how-to-get-pinentry-curses-to-start-on-the-correct-tty * https://lists.gnupg.org/pipermail/gnupg-users/2002-September/015079.html Looks like this is just something that can happen when working with multiple terminal instances and `pinentry`.
Author
Owner

@ealap commented on GitHub (Jan 15, 2021):

I had no idea. Executing the updatestartuptty did solve the issue. Thanks for checking this 🍻

@ealap commented on GitHub (Jan 15, 2021): I had no idea. Executing the `updatestartuptty` did solve the issue. Thanks for checking this 🍻
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12072