I installed gitlab omnibus on my local Ubuntu 14.04 desktop about a month ago and have used it heavily for project management and version control. I recently tried setting the server up as a public-facing server and thus changed the hostname and updated /etc/hosts to enable this. Once this change was made, I have been unable to push to my gitlab repositories, which has unfortunately halted all progress on several projects. Upon finding this issue, I reverted the server hostname and /etc/hosts file back to their original states as a few of many steps in troubleshooting the issue. Nothing has worked yet, as I am getting prompted for the user login for git@[myserver] rather than using the SSH key that is in place and was working previously.
I have added the ssh public key through the GitLab web interface, and confirm that it is installed by inspecting the /var/opt/gitlab/.ssh/authorized_keys file and confirming that the public key is listed, and includes the extra 'command=...' portion that gitlab needs. Everything looks good with the ssh stuff to me to the best of my understanding of it. I do have working ssh keys to other user accounts on the server, and have confirmed that these are working as expected. The issues seems to be specific to gitlab rather than my general ssh service.
I have found other discussions of this issue, but no solutions offered in those have worked for me. Specifically, I have attempted to follow directions offered in the following threads:
- git push failing in gitlab
- https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide (specifically the section 'Could not read from remote repository')
I have spent about 3 days trying to troubleshoot this and have not made any progress. I even uninstalled and reinstalled gitlab, only to find that the uninstall didn't clear out any settings or data, and that the problem perisisted.
What can I do to get this usable again? I am happy to provide whatever details about the server and gitlab configuration are needed.