Saturday, January 6, 2007

Using ssh-agent to stop getting prompted OVER AND OVER AGAIN for GNOME svn+ssh password

I'm mostly posting this as a reminder for myself, since I'm probably the only GNOME developer who didn't know how to do it. But if you're tired of getting prompted for your ssh password three times during `svn co`, and several other times throughout a hacking session, this command is for you:

ssh-add ~/.ssh/id_rsa

If you're running GNOME, chances are ssh-agent is already running when you log in. The above command prompts you for your SSH password then adds your SSH key (at least, that's where I keep my GNOME SSH key) to the running agent. And that is the last time you'll have to enter that password until your next log in.

This was very exciting to me...

UPDATE: I guess seahorse (slated for inclusion in GNOME 2.18) does the same stuff, but graphically.

No comments: