1 |
Tengo un problema con mutt y gpg-mime que me esta volviendo loco, para que la |
2 |
cosa me funcione tengo la siguiente configuracion: |
3 |
|
4 |
- En ~/.gnupg/gpg.conf tengo: use-agent |
5 |
- En ~/.mutt/gpgrc tengo: set crypt_use_gpgme |
6 |
- Para pinentry tengo en el fichero .gnupg/gpg-agent.conf: |
7 |
|
8 |
pinentry-program /usr/bin/pinentry-curses |
9 |
no-grab |
10 |
default-cache-ttl 300 |
11 |
|
12 |
- En ~/.bashrc , para exportar el valor de GPG_AGENT_INFO tengo: |
13 |
|
14 |
# man gpg-agent dice que esto hace falta |
15 |
GPG_TTY=`tty` |
16 |
export GPG_TTY |
17 |
# El script de man gpg-agent no me va esta es mi version |
18 |
# Si el daemon este en ejecucion |
19 |
if $(ps -C gpg-agent > /dev/null) |
20 |
then |
21 |
# Exporta variables de entorno |
22 |
ENT=$(cat ~/.mutt/gpgenv) |
23 |
export $ENT |
24 |
else |
25 |
# Si no esta lo ejecutas |
26 |
ENT=$(gpg-agent --daemon --write-env-file ~/.mutt/gpgenv) |
27 |
# Y exportas variables de entorno |
28 |
eval $ENT |
29 |
fi |
30 |
|
31 |
La cuestion es que con esto me va bien en conexiones locales, pero cuando |
32 |
entro por ssh la variable GPG_AGENT_INFO esta vacia. |
33 |
|
34 |
En los man de ssh he visto referencias a AcceptEnv,SendEnv y |
35 |
PermitUserEnvironment, incluso he intentado cosas como poner un .ssh/rc y |
36 |
decirle que haga un source ~/.bashrc desde alli porque si al logear con ssh yo |
37 |
hago a mano source ~/.bashrc si funciona. |
38 |
|
39 |
No se si he configurado mal todo lo anterior en ssh o si me he dejado algo, |
40 |
¿alguien me puede echar una mano? |
41 |
|
42 |
Saludos. |
43 |
|
44 |
|
45 |
-- |
46 |
<http://arrase.no-ip.org>-<http://www.sofistic.net>-<www.gulcas.org> |
47 |
<arrase@××××××.org>-<Gnupg Keys: http://arrase.no-ip.org/pubkey.txt> |
48 |
|
49 |
print "".join(map(lambda numChar:filter(lambda x:(x<"0") or \ |
50 |
(x>"9"),numChar),["0"+chr(104)+"0","1"+chr(111)+"1","2"+chr(108)+"2", \ |
51 |
"3"+chr(97)+"3","4"+chr(32)+"4","5"+chr(109)+"5","6"+chr(117)+"6", \ |
52 |
"7"+chr(110)+"7","8"+chr(100)+"8","9"+chr(111)+"9"])) |