Found Elsewhere…


Disable ssh-agent in Snow Leopard

Published by Robert Bousquet on 2010-01-15 03:27:00 UTC

I use multiple ssh identities to connect to sites like github. This allows me to create accounts for a group of people that should all have commit access to a particular account, but that isn’t each person’s primary account. For instance, all of the developers at New Leaders have commit access to newleaders username so our clients can just give newleaders access to their repo and anyone on our team can then make changes if needed. Follow this guide to setup multiple github accounts and keys.

I ran into one problem on Snow Leopard which was that everytime I tried to authenticate to github using my non-primary account, it would send my primary ssh key first, and then authenticate me as bousquet instead of newleaders. Turns out there is integration in Snow Leopard between your keychain and ssh through a process named ssh-agent. Not sure what else it’s needed for, but I turned mine off to fix the problem I described above.

Disable ssh-agent by unloading it from launchd:

$ launchctl unload /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist