You are not logged in.

#1 2014-09-01 09:19:12

p90
Member
Registered: 2013-06-07
Posts: 21

SSH_AUTH_SOCk not set while using gnome-keyring

Hi,

some time ago, I setup gnome keyring on my system to deal with ssh and gpg.
Worked fine for about a year but I just now noticed, it does not work for the ssh stuff anymore.

So I checked if the gnome-keyring service was still running (it is) and if it still set the env variables (it does not).
The code I was using to set the SSH_AUTH_SOCK was:

SSH_AUTH_SOCK= `ss -xl | grep -o '/home/p91/.cache/keyring-*/ssh$'`
[ -z "$SSH_AUTH_SOCK" ] || export SSH_AUTH_SOCK

ss -xl still shows the ssh socket but the value is not set, SSH_AUTH_SOCK is always empty.

Has anyone an idea?

https://wiki.archlinux.org/index.php/GN … atic_login also has similar code (but it is using the /run/user folder instead of /home/user/.cache/

Offline

#2 2014-09-01 13:59:10

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: SSH_AUTH_SOCk not set while using gnome-keyring

My (automatically) set SSH_AUTH_SOCK is just "/run/user/1000/keyring/ssh" (not /run/user/1000/keyring-xxxx). The wiki might simply be outdated - does it work if you remove the custom env setting completely?

Last edited by hokasch (2014-09-01 13:59:31)

Offline

#3 2014-09-01 16:23:24

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: SSH_AUTH_SOCk not set while using gnome-keyring

p90, you use incorrect filename for the socket. Here is what wiki says:

SSH_AUTH_SOCK=`ss -xl | grep -o '/run/user/1000/keyring-.*/ssh'`
[ -z "$SSH_AUTH_SOCK" ] || export SSH_AUTH_SOCK

Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#4 2014-09-08 13:34:29

p90
Member
Registered: 2013-06-07
Posts: 21

Re: SSH_AUTH_SOCk not set while using gnome-keyring

anatolik wrote:

p90, you use incorrect filename for the socket. Here is what wiki says:

SSH_AUTH_SOCK=`ss -xl | grep -o '/run/user/1000/keyring-.*/ssh'`
[ -z "$SSH_AUTH_SOCK" ] || export SSH_AUTH_SOCK

Hi,

at least here, these files do not exist so I have to use the ones in my home folder.

I got it to work with this:

SSH_AUTH_SOCK=`ss -xl | grep -o '/home/p91/.cache/keyring-.*/ssh'`
[ -z "$SSH_AUTH_SOCK" ] || export SSH_AUTH_SOCK

Apaprently, it does not like the $ at the end.
With best regards,

p90

Offline

Board footer

Powered by FluxBB