User git not allowed because account is locked
Hello!
After a clean installation on Debian 8, I can't use GitLab in SSH. HTTPS works correctly to push repository. The public key is added in the /var/opt/gitlab/.ssh/authorized_keys file.
After looking to the /var/log/auth.log file, I saw that the Git account was locked:
Nov 9 09:33:16 XXX sshd[4355]: User git not allowed because account is locked Nov 9 09:33:16 XXX sshd[4355]: input_userauth_request: invalid user git [preauth] Nov 9 09:33:17 XXX sshd[4355]: Connection closed by 172.22.83.134 [preauth]
It seems that OpenSSH does not allow connections even with a public key if the account is locked. "passwd -d git" do the trick but I prefer to open an issue to correct the problem :)
Thanks!