Can OS X users get locked on OS X similar to on ubuntu when using git? 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
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.