Ubuntu – Graphical ssh private key prompt not showing up

ssh

I recently stopped using a full desktop environment in ubuntu 11.10 (tired of unity) but I'm trying to get some of the desktop environment back. I'm currently trying to get the "Unlock private key" dialog to show up when I'm trying to use a new ssh key. However, currently the prompt only shows up in the terminal window instead of the gui, which means that it isn't using a global ssh-agent and hence I need to enter the key password multiple times before I restart.

I think what I want is gnome-ssh-askpass and I tried setting SSH_ASKPASS but that didn't work:
http://www.linuxquestions.org/questions/linux-software-2/how-to-replace-ssh-askpass-with-ssh-askpass-gnome-843220/

I've also tried gnome-keyring-daemon as gnome-keyring-daemon –components keyring,pkcs11,ssh but that didn't help:
http://live.gnome.org/GnomeKeyring/Ssh

Best Answer

I think what you're really looking for is keychain, which is similar to the ssh-reagent you mention. Once configured in your .bashrc it'll prompt for the passphrase of the key(s) you asked it to manage only when you launch the first terminal after login and makes sure every new terminal knows about your ssh-agent.