Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jrtayloriv
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2004
Posts: 149
Location: N. Idaho

PostPosted: Mon Jan 07, 2008 10:16 pm    Post subject: gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent Reply with quote

I am having trouble with gpg & gpg-agent. I ran

Code:
gpg --gen-key

And right after I input my name and email, it crashes with the following message:

Quote:

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory
gpg-agent[23478]: command get_passphrase failed: Operation cancelled

gpg: cancelled by user
gpg: Key generation canceled.


Any idea how I might fix this?

Thanks,
jrtayloriv
Back to top
View user's profile Send private message
jrtayloriv
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2004
Posts: 149
Location: N. Idaho

PostPosted: Tue Jan 08, 2008 2:04 am    Post subject: Reply with quote

I'm not sure why, but running this:

Code:

eval 'gpg-agent --daemon'


and then adding this into a file called /root/.gnupg/gpg-agent.conf:

Code:

pinentry-program /usr/bin/pinentry
no-grab
default-cache-ttl 1800


Seemed to work OK. I used touch to create a file called /root/.gnupg/S.gpg-agent.

I still get an error saying:

Code:

can't connect to `/root/.gnupg/S.gpg-agent': Connection refused


But it generated a key for me...although I'm a bit uncomfortable having this program just "kind of" working.

Any suggestions as to what might be causing this?
Back to top
View user's profile Send private message
noisebleed
Apprentice
Apprentice


Joined: 03 Oct 2006
Posts: 177
Location: Porto, Portugal

PostPosted: Mon Jan 21, 2008 7:14 pm    Post subject: Reply with quote

Hi. Used
Code:

# eval 'gpg-agent --daemon --use-standard-socket'


and it created the socket file:

Code:
# ls -la S*
# srwxr-xr-x 1 root root    0 2008-01-21 19:08 S.gpg-agent


Have you already solved your problem?

Just one question: why the touch thing?
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Tue Jan 22, 2008 2:04 am    Post subject: Reply with quote

What I do not understand is that you have to run this command manually?!?! Shouldn't this happen automatically?

Greetz
swimmer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum