Goal
Stop Gnome keyring for managing ssh-agent on Ubuntu so you can use the original OpenSSH ssh-agent implementation.Quick Solution
The solution is quite easy because Gnome Keyring daemon provide a way to replace the existing session.1 | $ gnome-keyring-daemon --replace --daemonize --components=pkcs11,secrets,gpg |
1 2 | $ ssh-add -l Could not open a connection to your authentication agent. |
Permanent Solution
Quick solution will not persist once you logged out or restart Xubuntu. To make it permanent the command need to be added on Session and Startup.- Go to Menu > Settings > Session and Startup
- Click Application Autostart tab
- Click Add button
- New application window will appear, you can fill it like example below
- Name: SSH Keyring Remover
- Description: Remove SSH from GNOME Keyring
- Command:
gnome-keyring-daemon --replace --daemonize --components=pkcs11,secrets,gpg
- Click OK