I've set up gitolite on a remote machine and configured it from my local. I didn't want to have my activity shown as "admin" and created the user and key "noah". After creating a repo for "noah", I was denied access. I believe because I was still "admin".
So I have two accounts on one machine. How do I switch?
Thanks
UPDATE:
Here is my local ~/.ssh/config/:
#noah account
Host git-noah
HostName remote
User git
IdentityFile ~/.ssh/noah</code>
command on local:
git clone git-noah@remote-ip:reponame
authorized_keys on remote:
command="/usr/share/gitolite/gl-auth-command noah",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa ...
If it matters, I'm on a Mac. I've also done ssh-add -K ~/.ssh/noah
UPDATE 2:
Here is auth.log:
server sshd[2834]: Invalid user git-noah from localip
server sshd[2834]: input_userauth_request: invalid user git-noah [preauth]
Here's the local permissions:
drwx------+ 13 noah 442 19 Apr 14:47 .ssh
Remote permissions:
-rwx------ 1 git 1067 Apr 19 14:57 authorized_keys
drw------- 2 git 4096 Apr 19 14:57 .ssh