gitu icon indicating copy to clipboard operation
gitu copied to clipboard

Unable to enter passphrase for SSH key

Open vstollen opened this issue 1 year ago • 2 comments

When I try to push to an SSH-authenticated repository and I am prompted for the passphrase of my SSH key, I cannot enter the passphrase and keystrokes are interpreted as gitu commands.

Steps to reproduce

  1. Initialize a Git repo using SSH authentication and a passphrase-protected SSH key.
  2. Press Pp
  3. System prompts: "Enter passphrase for key: <key name>"
  4. Type passphrase

Expected behaviour

After typing the passphrase and pushing Enter my commits are pushed

Actual behaviour

Keystrokes seem to be interpreted as regular commands and chaos ensues.

Might be related to #99, however, I'm a new user unfamiliar with gitu.

vstollen avatar Aug 11 '24 18:08 vstollen

This is indeed nasty. Pushing/pulling/fetching was made async some time ago. So Gitu reads keystrokes meanwhile the command is running. I wonder if there's a good way to prompt a password if required then continue async.

altsem avatar Aug 28 '24 17:08 altsem

Facing the same problem. This fix is pretty much needed. 🙏🏼

chapeupreto avatar Apr 03 '25 01:04 chapeupreto