Skip to content

Instantly share code, notes, and snippets.

@beli-sk
Last active September 7, 2018 08:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save beli-sk/25a3e36972875db9baca5303b241b1b6 to your computer and use it in GitHub Desktop.
Save beli-sk/25a3e36972875db9baca5303b241b1b6 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