Home | Edit | New

Guides: How to not have to type your password for every push feed

ssh-agent

Use ssh-agent. Since you should already have a keypair, already known to GitHub, this is easy.

$ eval `ssh-agent`
$ ssh-add [key name such as id_rsa or it will add all]

That’s it.

ssh-agent on OSX Leopard

On OSX Leopard ssh-agent is started automatically when needed. You just need to run ssh-add. If you don’t want to run ssh-add every time you login, you can add your default key to the “key chain” with:
$ ssh-add -K
((Note: This appears to fail under Leopard(10.5.3) – ssh-add: illegal option—K))
Last edited by JoeSniff, about 1 month ago
Versions: