Skip to content

Instantly share code, notes, and snippets.

@sandys
Created October 30, 2012 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandys/3979772 to your computer and use it in GitHub Desktop.
Save sandys/3979772 to your computer and use it in GitHub Desktop.
Use ssh-agent and ssh-add on Ubuntu without annoying gnome-keyring

sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-keyring/daemon-components/secrets FALSE
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-keyring/daemon-components/pkcs11 FALSE
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-keyring/daemon-components/ssh FALSE

eval `ssh-agent`

echo $SSH_AUTH_SOCK #copy the path that is displayed as a result

#whenever you want a new shell: SSH_AUTH_SOCK= ssh xxx@2.2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment