Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aduzsardi/483ff34dcd924acc5a56ffbcf42a7607 to your computer and use it in GitHub Desktop.
Save aduzsardi/483ff34dcd924acc5a56ffbcf42a7607 to your computer and use it in GitHub Desktop.
Disable Gnome Keyring SSH agent in (X)Ubuntu
# Disable Gnome Keyring SSH agent in Ubuntu
# To allow using ssh-agent from OpenSSH, mainly because
# gnome-keyring does not like EC-type SSH keys
# as regular user (for which to disable):
systemctl --user mask gnome-keyring-ssh.service
pam-auth-update
# and disable "GNOME Keyring Daemon..."
# which probably also disables automatic keyring unlocking on login
echo X-GNOME-Autostart-Enabled=false >> /etc/xdg/autostart/gnome-keyring-ssh.desktop
# if using XFCE4:
xfce4-session-settings
# on 'Advanced' tab disable 'Launch GNOME services on startup'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment