GNOME Bugzilla – Bug 761896
stale information how to disable gnome-keyring-daemon
Last modified: 2018-09-24 10:47:42 UTC
https://wiki.gnome.org/Projects/GnomeKeyring/Ssh This says to use gnome-session-properties to disable gnome-keyring-daemon, but there is no such thing anymore, it's gnome-tweak-tool. But gnome-tweak-tool doesn't list anything as startup item, and yet chris 1894 0.0 0.0 312424 6420 ? Sl Feb11 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login That's always launched everytime I login, and then I run into this bug 641082.
[chris@f23m ~]$ ps aux | grep keyring chris 1866 0.0 0.0 312424 6540 ? Sl 00:21 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login chris 2556 0.0 0.0 117004 2292 pts/0 S+ 00:21 0:00 grep --color=auto keyring [chris@f23m ~]$ ps aux | grep ssh chris 2565 0.0 0.0 117000 2304 pts/0 S+ 00:21 0:00 grep --color=auto ssh [chris@f23m ~]$ ssh chris@10.0.0.15 Enter passphrase for key '/home/chris/.ssh/id_ed25519': Last login: Fri Feb 12 00:18:31 2016 from 10.0.0.14 [chris@f23s ~]$ exit logout Connection to 10.0.0.15 closed. [chris@f23m ~]$ ssh chris@10.0.0.15 Enter passphrase for key '/home/chris/.ssh/id_ed25519': Last login: Fri Feb 12 00:22:03 2016 from 10.0.0.14 [chris@f23s ~]$ ssh-add Could not open a connection to your authentication agent. I can certainly "fix" this temporarily using: $ eval $(ssh-agent) $ exec ssh-agent bash But it stops working after a reboot. All I really want is documentation how to correctly disable gnome-keyring-daemon as the ssh agent, and permanently enable ssh-agent instead. gnome-keyring-3.18.3-1.fc23.x86_64
/etc/xdg/autostart/gnome-keyring-ssh.desktop does not exist. If I create a symbolic link such that: lrwxrwxrwx. 1 root root 9 Feb 11 23:50 gnome-keyring-ssh.desktop -> /dev/null The problem still happens each reboot, there is still gnome-keyring-daemon (?) maybe it's not related to ssh-agent but then ssh-agent isn't running until I run the eval and exec commands, and then this is not persistent.
Not really sure whether a bug tracker is the right platform to deal with support issues... gnome-keyring-daemon still deals with other things such as GPG if you have not disabled that, so that's fine. You have to set up ssh-agent to run automatically yourself. You can use gnome-autostart for this (and don't forget to set SSH_AUTH_SOCK) or for example systemd. I use a systemd user unit for this. In my .profile I set SSH_AUTH_SOCK. https://wiki.archlinux.org/index.php/SSH_keys#Start_ssh-agent_with_systemd_user
Btw I disabled the autostart of gnome-keyring-daemon only for my user as follows: cp /etc/xdg/autostart/gnome-keyring-ssh.desktop ~/.config/autostart/gnome-keyring-ssh.desktop echo X-GNOME-Autostart-enabled=false >> ~/.config/autostart/gnome-keyring-ssh.desktop
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/Infrastructure/Websites/issues/186.