I have gitlab connected to my mac but when I do git push -u origin master I get 'Permission denied. Please try later' message which is what pops up when the user gets locked it seems.

But here in this post users have used usermod in linux to unlock the user. I need to do something similar. Or if there is any other solution

  • What versions of git and OS X are involved?
    – bmike
    Sep 9, 2014 at 21:41
  • its OS X 10.8.3. And I dont know what the gitlab hosted server is using. Is it something that can be fixed from myside or need a systems person to unlock me on their server?
    – uday
    Sep 9, 2014 at 21:43
  • It's not clear what troubleshooting you'll need to do to narrow down the permission error. You might try sudo git push to rule out a permission error on your end, but if you are an admin user on the Mac, you shouldn't be locked out and would normally be prompted to authenticate rather than getting a simple permission denied error.
    – bmike
    Sep 9, 2014 at 21:51
  • 2
    Sounds like a good place to start. Also, the logs on the server side might also be illuminating as to where the permission error lies. You can also check your console on the Mac end. Sorry I don't have a direct answer.
    – bmike
    Sep 9, 2014 at 22:11
  • 1
    try this stackoverflow.com/a/21180249
    – Ruskes
    Sep 10, 2014 at 6:25

1 Answer 1


I just had to delete the entry from known_hosts file on my MAC(client) to remove the traces of old config for that particular gitlab server. And also I regenerated my ssh keys back which seemed to work! :)

I used githubs awesome article to regenerate the ssh-keys.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .