unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [OSX/MAGIT] git push -u and gpg-agent
@ 2015-11-30  5:53 Xavier Maillard
  2015-11-30  9:38 ` Magnus Therning
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Maillard @ 2015-11-30  5:53 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

when in a Terminal (OSX), pushing upstream is just a matter of me doing:

git push -u origin master

Then, gpg-agent is asking for to type my PIN and /voila/.

I added my ssh identity into my GPG card (and gpg-agent just sees it):

ssh-add -l

2048 SHA256:<identity> cardno:000603811769 (RSA)

Now, when trying to Push from magit, I am asked to type my remote git account
password which is not what I want :)

How can I tell GNU Emacs (with magit) to talk to my gpg-agent and, eventually,
ask my for my pin code ?

TIA

- -- Xavier.
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJWW+REAAoJEDy08nibbhJt588H/09bUO8MsEF+qemaLrahGUWy
ZOVPW658nX7SUOWYEpcdgbwhhO+iHogek67EfDQthQEl+GkeJx5I9WwdKG2nIvR7
zc27ou6E8K+4uWeB1mno3G+Yz4oVHErJ0GogTPm4PnXJe90doIirWSLb2v+wgQ4f
vSoPU5jMFa0sGxWrT4UzZQatFsKItKBfaa9+XT2qt14HjoSXQWOQNgPqPcuGz5kR
WAqLbJgryUw5jvyrvJqqLoPGU7XHrTC3TK0iUDZk5emVm1uBX5q3UFYaF9MXomtu
u2VQknoaBDaATvyLemy8IwazrE5ghByAJ1jPsUkAHdawX8e2fmZn0796HGA8oO4=
=bXW/
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OSX/MAGIT] git push -u and gpg-agent
  2015-11-30  5:53 [OSX/MAGIT] git push -u and gpg-agent Xavier Maillard
@ 2015-11-30  9:38 ` Magnus Therning
  2015-12-01  5:43   ` Xavier Maillard
  0 siblings, 1 reply; 3+ messages in thread
From: Magnus Therning @ 2015-11-30  9:38 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

On Mon, Nov 30, 2015 at 06:53:08AM +0100, Xavier Maillard wrote:
> Hi,
> 
> when in a Terminal (OSX), pushing upstream is just a matter of me doing:
> 
> git push -u origin master
> 
> Then, gpg-agent is asking for to type my PIN and /voila/.
> 
> I added my ssh identity into my GPG card (and gpg-agent just sees it):
> 
> ssh-add -l
> 
> 2048 SHA256:<identity> cardno:000603811769 (RSA)
> 
> Now, when trying to Push from magit, I am asked to type my remote
> git account password which is not what I want :)
> 
> How can I tell GNU Emacs (with magit) to talk to my gpg-agent and,
> eventually, ask my for my pin code ?

I have the same problem in my setup.  I was hoping that adding

    allow-emacs-pinentry

to ~/.gnupg/gpg-agent.conf would do it, but it didn't :(

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

There's a big difference between making something easy to use and
making it productive.
     -- Adam Bosworth

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OSX/MAGIT] git push -u and gpg-agent
  2015-11-30  9:38 ` Magnus Therning
@ 2015-12-01  5:43   ` Xavier Maillard
  0 siblings, 0 replies; 3+ messages in thread
From: Xavier Maillard @ 2015-12-01  5:43 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

thank you for your feedback.

Magnus Therning <magnus@therning.org> writes:

> On Mon, Nov 30, 2015 at 06:53:08AM +0100, Xavier Maillard wrote:
>
>> when in a Terminal (OSX), pushing upstream is just a matter of me doing:
>> 
>> git push -u origin master
>> 
>> Then, gpg-agent is asking for to type my PIN and /voila/.
>> 
>> I added my ssh identity into my GPG card (and gpg-agent just sees it):
>> 
>> ssh-add -l
>> 
>> 2048 SHA256:<identity> cardno:000603811769 (RSA)
>> 
>> Now, when trying to Push from magit, I am asked to type my remote
>> git account password which is not what I want :)
>> 
>> How can I tell GNU Emacs (with magit) to talk to my gpg-agent and,
>> eventually, ask my for my pin code ?
>
> I have the same problem in my setup.  I was hoping that adding
>
>     allow-emacs-pinentry
>
> to ~/.gnupg/gpg-agent.conf would do it, but it didn't :(

What's weird is that on the other hand, I have no problem with gpg-agent for
mails (signing, encrypting) or even to handle file decryption (eg. opening my
.authinfo.gpg file). THat only happens with `ssh-agent'

Still digging.

- -- Xavier.
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJWXTNmAAoJEDy08nibbhJtjJ4H/0BRHneIVd1Sn7mppakYqO6Q
+B7zEubjTtgMwc/gfFQFhGq/6fkrxJCRWtJGxPUn3dsl9JDuYEwLhTwBgZ+9kqxX
P6YZPaRJKL2go5iQz+ojOqDv++5BIng+R3fqv1+eeT1Vm+Hek60CkuuFoer9kOi+
o2TLk4aEmApkLG1K/7eJv8MMRsMUeR5Iwf0zOjaaSFiZ2qfz5og3cTNe+x2dnGgM
4A/HpRLW16Cw7SKLxfHICClrw2e+xJi5FM+eqKjzYs60jfIOY69t5DHnq9Qfv1XI
lwTMn0QvAP+yh9XtAe0dRBFDu7FJq5qz+2xLXCsrgeBgNvWk0yIYLPHWBLvn35o=
=Vpyg
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-01  5:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-30  5:53 [OSX/MAGIT] git push -u and gpg-agent Xavier Maillard
2015-11-30  9:38 ` Magnus Therning
2015-12-01  5:43   ` Xavier Maillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).