Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 name@server.com
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

1 Answer 1

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

 
discard

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.