no need to do all that ssh-agent stuff on os x. just do: ssh-add -K ~/.ssh/id_rsa