I had this problem as well. Git uses SSH for authentication.
Check the output of the following command:
grep "AllowUsers" /etc/ssh/sshd_config
If "AllowUsers" is present in the SSH daemon config, make sure you include the "git" user.
eg: My "/etc/ssh/sshd_conf" file contained this line: AllowUsers vortexcortex
I edited the file via this command: gksudo gedit /etc/ssh/sshd_conf
Then, I changed the AllowUsers line to read: AllowUsers vortexcortex git
I saved the file, quit the editor and finally restarted my SSH daemon: sudo /etc/init.d/ssh restart
(I have also had success via removing the AllowUsers line completely)
I had this problem as well. Git uses SSH for authentication.
Check the output of the following command:
grep "AllowUsers" /etc/ssh/ sshd_config
If "AllowUsers" is present in the SSH daemon config, make sure you include the "git" user.
eg: My "/etc/ssh/ sshd_conf" file contained this line:
AllowUsers vortexcortex
I edited the file via this command:
gksudo gedit /etc/ssh/sshd_conf
Then, I changed the AllowUsers line to read:
AllowUsers vortexcortex git
I saved the file, quit the editor and finally restarted my SSH daemon:
sudo /etc/init.d/ssh restart
(I have also had success via removing the AllowUsers line completely)