18
2
I'm trying to set up ssh to work with git on Mac OS X, and I can't find my keys. I tried generating new keys, using existing keys, copying exactly the same ~/.ssh directory used by git on my Windows machine, and nothing made any difference on the Mac.
I've had an ssh key I've used for some time to access my server from the Mac, which I thought was the id_rsa/id_rsa.pub pair in ~/,ssh. When I moved the ~/.ssh directory out of the way to check my assumption that this was where ssh was getting the keys and then tried ssh (from Terminal) to my server, it didn't recognize the host, as I expected since known_hosts was moved, but I still got in to the server without a password.
So it must still be using a secret key corresponding to one of the authorized public keys on the server, not just a session key, so it's not the scenario here, but where is it getting it if not from ~/.ssh?
1Yes, it was in the keychain. Thanks for telling me that ssh is special on (Snow) Leopard. – chrysanhy – 2012-07-14T16:43:24.413