Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When pushing a bzr repo to another server, I need to type an openSSH password.

After I typed it, an openSSH popup appears, and requires the password again.

Any way to avoid this?

share|improve this question

The thing is, that even with an SSH key, if you put a passcode on the ssh key you use, it'll require you to enter your passcode to unlock the key once during your login session (unless otherwise configured). This is a security measure that some people enable so that others cant utilize their system nor their SSH key on their own system.

In order to fix this, you'd need to edit your SSH key (if you use one) so that it does not require a passcode, and seahorse (the GUI for key management and things) will help you do that. I strongly recommend you don't remove your passcode from your SSH key (if that IS the thing that's causing the popups, and I'm pretty sure it is)

share|improve this answer
@EvilPhoenix: The way I read the question, it's likely the user does not have a key at all. – Mikel Mar 17 '11 at 3:34
@Mikel: no need to comment about your interpretation after posting your answer, I can clearly see your interpretation of their question through your answer. – Thomas Ward Mar 17 '11 at 3:38
@Mikel: EvilPhoenix is correct, actually. – RolandiXor Apr 15 '11 at 2:34
@Roland Taylor: My answer was directed to the Adam Matan; my comment was directed to EvilPhoenix. I think this is the logical thing to do. – Mikel Apr 15 '11 at 2:47
@Mikel: nvm lol... – RolandiXor Apr 15 '11 at 2:49

By saying "password", I assume this means you don't have an SSH key.

The easiest way to make this work:

  1. Open a terminal window and run ssh-keygen
  2. Accept the default location
  3. Enter a password or passphrase twice (passphrase is like a password, but can contain spaces)
  4. Run ssh-copy-id OTHERSERVER and enter your password
  5. Run ssh OTHERSERVER

Now, it should ask you for the passphrase you typed.

After that, gnome-keyring-daemon or ssh-agent will remember your passphrase until you log out.

share|improve this answer

You may find GPG Agent useful - see Tips and Tricks page on Ubuntu Community Help

share|improve this answer
How does it solve the popup problem? – Adam Matan Feb 14 '11 at 15:51
The popup will appear only once - to unlock the key - and the key will be used up to 24 hours or before the log off – Vadim Rutkovsky Feb 14 '11 at 19:21
Why should it interfere with my commandline anyway? – Adam Matan Mar 3 '11 at 16:10
If you're using a regular password, it will prompt every time. You need to use public key authentication, and gpg-agent so SSH can get at the stored key. In general, pubic keys are strongly preferred. – geekosaur Mar 16 '11 at 21:36
How will gpg-agent help with SSH? Do you mean ssh-agent? – Mikel Mar 17 '11 at 3:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.