I just tested it here -- Oneiric, two terminal windows, one running RoxTerm, one under byobu.
On the byobu window: ssh-add -l (my key was shown) ssh-add -D ssh-add -l (no keys shown) ssh test.machine.info (pop up asking for SSH passphrase; entered it, got in session; ended the session) ssh test.machine.info (session opened with no pop-ups; ended the session) ssh-add -D ssh-add -l (no keys shown) ssh-add ssh-add -l (my key was shown) ssh test.machine.info (session opened with no pop-ups; ended the the session) Moved over to the stand-alone RoxTerm; then repeated the tests. To my surprise even *after* adding my SSH key in, when I tried to open the SSH session to the test machine I was still presented with a pop-up asking for the passphrase on *first* SSH. Second SSH session, *without* running 'ssh-add -D', opened the session without a pop-up for passphrase. Another interesting bit: on the RoxTerm stand-alone, 'ssh-add -D' did *not* clean up the keys in the agent. Additional findings: SSH-AUTH_SOCK differs on the terminal windows (byobu and RoxTerm): * Under RoxTerm: [cerdea-aws]cerdea@xango3:~$ set | grep SSH SSH_AGENT_PID=2857 SSH_AUTH_SOCK=/tmp/keyring-6fXAtd/ssh [cerdea-aws]cerdea@xango3:~$ * under byobu: [cerdea-aws]cerdea@xango3:/build/buildd/ubuntu-qa-tools/vm-tools$ set | grep SSH SSH_AGENT_PID=2857 SSH_AUTH_SOCK=/home/cerdea/.byobu/.ssh-agent [cerdea-aws]cerdea@xango3:/build/buildd/ubuntu-qa-tools/vm-tools$ Note that the SSH_AGENT_PID is the same. Also, I dimly remember something about gnome-keyring and ssh-add. Will try to find out the references. Setting importance to Medium. ** Changed in: openssh (Ubuntu) Importance: Low => Medium ** Summary changed: - ssh-add does not unlock ssh keys + ssh-add does not always unlock ssh keys -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/841672 Title: ssh-add does not always unlock ssh keys To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs