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 accessing an ssh-key with a password for the first time in a gnome session, it's so much clearer for the password prompt to appear in the terminal I'm running the ssh command in. Instead, though, gnome-keyring-daemon prompts with a GUI pop-up that can easily get lost on different workspaces.

How can I make gnome-keyring-daemon prompt me in the terminal rather than with a GUI? It should look like this:

$ ssh
Enter password for ssh key `/path/to/my/key.dsa`: 

This is the prompt that appears in a non-X session, for instance.

share|improve this question

If you don't insist on using gnome-keyring it is easy. ssh-agent is the tool you want. You can add keys to the running agent with ssh-add path/to/keyfile and list the active keys with ssh-add -l.

After you have added a key to the agent you can use ssh like you are now, but the keys are provided by ssh-agent.

share|improve this answer

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.