git-crypt icon indicating copy to clipboard operation
git-crypt copied to clipboard

Unlock with GPG Keys does not prompt for Password

Open cmg-dev opened this issue 8 years ago • 6 comments

So, the problem is I try this:

$ git-crypt unlock                                                                                                                                        

You need a passphrase to unlock the secret key for
user: "Christoph Gnip <[email protected]>"
4096-bit RSA key, ID 1C2B032A, created 2015-06-19 (main key ID B327F778)

This message appears, but it does not stop at this point. So I'm not able to enter my password.

My System is a OSX machine with El Capitan.

What am I doing wrong? Has someone an idea?

cmg-dev avatar Feb 13 '17 16:02 cmg-dev

I too have exactly this same issue. This has worked in the past, the only change is deleting the local repo and recloning.

rdica avatar Feb 17 '17 18:02 rdica

My guess is this has nothing to do with git-crypt What is your gpg-agent situation? if it isn't running at all try something like this first (watch the backticks) eval `gpg-agent --daemon --use-standard-socket`

jmalacho avatar Feb 22 '17 18:02 jmalacho

I'm also seeing this issue on version 0.5.0

▶ git-crypt unlock

You need a passphrase to unlock the secret key for
user: "Anthony Ross <email>"
2048-bit RSA key, ID 2E335CFF, created 2017-02-03 (main key ID 946DF5B2)

Agent is running:

▶ gpg-agent
gpg-agent: gpg-agent running and available

allcentury avatar Apr 12 '17 17:04 allcentury

Any updates on this issue? I have Sierra and the same problem. Can't use git-crypt at all because of this bug.

dzavalkinolx avatar Sep 13 '17 20:09 dzavalkinolx

I was never able to get it working @dzavalkinolx

allcentury avatar Sep 21 '17 13:09 allcentury

Making $(tty) writable together with setting GPG_TTY worked for us in a centos vm on virtualbox:

sudo chmod o+rw $(tty)
export GPG_TTY=$(tty)
git-crypt unlock

Deracination avatar Sep 13 '18 01:09 Deracination