You are not logged in.

#1 2016-04-11 10:35:06

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 96
Website

[SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

Edit: A recent Cinnamon upgrade fixed this.

Since the weekends updates the SSH_AUTH_SOCK variable is no longer set automatically, breaking the ssh-agent.

My configuration:

- Cinnamon
- Lightdm
- Gnome-Terminal (although the other TTYs do not work either, Remmina also does not work anymore, so seems unlikely to be gnome-terminal issue)
- Gnome-Keyring

What I found:

Gnome-Keyring is starting and opening up the ssh agent unix socket correctly. When manually setting SSH_AUTH_SOCK the agent works.

Can anyone else with gnome-keyring installed do the following:

ssh-add -l

If it says:

Could not open a connection to your authentication agent.

You have the same problem.

Can you reply with:

Your desktop environment (Gnome-Shell, Cinnamon) not interested in non-GTK3 stuff like KDE as this only broken today after the upgrades.
Your login manager (ie, lightdm, gdm)
If or not your ssh-agent is also broken

Appreciate the help !

Last edited by rlees85 (2016-05-29 08:44:55)

Offline

#2 2016-04-11 10:51:00

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

I can confirm gnome-terminal is failing to start for me under gnome-shell with this error:

$ gnome-terminal 
Error creating terminal: Message recipient disconnected from message bus without replying

Also:

$ ssh-add -l
Could not open a connection to your authentication agent.

I'm not using any login manager, but start gnome-session with startx.
Thanks for investigating this.

Offline

#3 2016-04-11 14:00:01

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 96
Website

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

I assume your keyring is unlocked before trying ssh-add ? Either way I guess I need to raise a bug... (somehow)

Offline

#4 2016-04-11 17:19:51

wba072
Member
Registered: 2010-11-11
Posts: 33

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

I'm using GNOME 3.20 with GDM.

echo $SSH_AUTH_SOCK
/run/user/1000/keyring/ssh

ssh keyring works fine for me (ssh-add -l works fine). gnome-terminal works fine in X, but when I autologin to Wayland it fails to launch (there's an issue with dbus).

Are you using X or Wayland?

Offline

#5 2016-04-11 19:14:22

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 96
Website

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

I am using Cinnamon which at the moment only supports X. But yeah I don't know where to look, hopefully more people will reply to help build up an idea (or even better a package update over the next few days fixes it automagically)

edit: tried setting it manually in /etc/profile and writing the steps to a log file. It sets the variable fine but when trying to use the variable once the DE is fully loaded it is blank again. So it seems it is probably getting set, but then cleared again.

Last edited by rlees85 (2016-04-11 20:59:00)

Offline

#6 2016-04-12 08:40:53

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 96
Website

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

Rolling back to 3.18 for gnome-keyring and seahorse fixes this. Its a shame that Remmina is also broken.... (blank screen when trying to SSH, does nothing)

Offline

#7 2016-04-15 14:21:42

chocolateboy
Member
Registered: 2015-06-13
Posts: 1

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

rlees85 wrote:

- Cinnamon
- Lightdm
- Gnome-Terminal
- Gnome-Keyring

Same setup here.

Can anyone else with gnome-keyring installed do the following:

ssh-add -l

If it says:

Could not open a connection to your authentication agent.

You have the same problem.

Yes, same result for me. There was a similar issue with Gnome 3.16, and the workaround posted here seems to be working for me:

echo "export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh" >> ~/.profile
exec $SHELL -l

Offline

#8 2016-04-15 15:20:13

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 96
Website

Re: [SOLVED] Another GTK3.20 Problem: SSH_AUTH_SOCK not set

Cheers for the tip... It'll do until its fixed properly smile I just want to make the developers aware as it seems not many people use it.

Offline

Board footer

Powered by FluxBB