piso77
April 23rd, 2008, 11:15 AM
Hi all,
I upgraded to Hardy and want to use my ssh-keys with the GPG-Agent (as I did before I did the upgrade). I deinstalled seahorse because it was not running with my GPG-Agent. My GPG-Agent was not running because SSH_AUTH_SOCK variable stuff as follows:
It seems that the SSH_AUTH_SOCK variable always points to a non-running SSH-Agent
heino@sora:~$ echo $SSH_AUTH_SOCK
/tmp/keyring-HUc
heino@sora:~$ ps ajx | grep ssh
1 5720 5720 5720 ? -1 Ss 0 0:00 /usr/sbin/sshd
10816 11539 11538 10816 pts/0 11538 R+ 1000 0:00 grep ssh
2ZW/ssh
I don't know where SSH_AUTH_SOCK was set, because I already disabled the use-ssh-agent in /etc/X11/Xsession.options.
I also deleted the /etc/X11/Xsession.d/XX...ssh-agent script (I can't remember the correct name, because I deleted it), but after every restart of Xorg (and login) the SSH_AUTH_SOCK variable again points to the SSH-Agent (who is not running!)
I can use the GPG-Agent when I manually set the SSH_AUTH_SOCK with the gpg-agent-info File:
heino@sora:~$ eval `cat .gnupg/gpg-agent-info-sora`
heino@sora:~$ echo $SSH_AUTH_SOCK
/tmp/gpg-FmQDhx/S.gpg-agent.ssh
But this only works for the terminal I did this eval ....
GPG-Agent is running and should be used, but it isn't, because SSH_AUTH_SOCK variable doesn't point to it.
Can anybody help me with some advice, so that I can use GPG-Agent as usual after login?
Thanks, piso.
I upgraded to Hardy and want to use my ssh-keys with the GPG-Agent (as I did before I did the upgrade). I deinstalled seahorse because it was not running with my GPG-Agent. My GPG-Agent was not running because SSH_AUTH_SOCK variable stuff as follows:
It seems that the SSH_AUTH_SOCK variable always points to a non-running SSH-Agent
heino@sora:~$ echo $SSH_AUTH_SOCK
/tmp/keyring-HUc
heino@sora:~$ ps ajx | grep ssh
1 5720 5720 5720 ? -1 Ss 0 0:00 /usr/sbin/sshd
10816 11539 11538 10816 pts/0 11538 R+ 1000 0:00 grep ssh
2ZW/ssh
I don't know where SSH_AUTH_SOCK was set, because I already disabled the use-ssh-agent in /etc/X11/Xsession.options.
I also deleted the /etc/X11/Xsession.d/XX...ssh-agent script (I can't remember the correct name, because I deleted it), but after every restart of Xorg (and login) the SSH_AUTH_SOCK variable again points to the SSH-Agent (who is not running!)
I can use the GPG-Agent when I manually set the SSH_AUTH_SOCK with the gpg-agent-info File:
heino@sora:~$ eval `cat .gnupg/gpg-agent-info-sora`
heino@sora:~$ echo $SSH_AUTH_SOCK
/tmp/gpg-FmQDhx/S.gpg-agent.ssh
But this only works for the terminal I did this eval ....
GPG-Agent is running and should be used, but it isn't, because SSH_AUTH_SOCK variable doesn't point to it.
Can anybody help me with some advice, so that I can use GPG-Agent as usual after login?
Thanks, piso.