I run a x86 raring ringtail on a old pc and having installed bitnami gitlab 5.3.
Here is my error msg when trying to push the first master branch in SSH mode:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
(it works in http protocol with the gitlab web dashboard credentials)
- I have launched
bitnami-installer.runwithrootuser so I think all the files went in/optinstead of/home(this was the good procedure?) - I didn't have a
gituser before installing GitLab since I heard it could make a confusion in the.ssh/authorized_keysfiles and other permissions. - When I run
ssh -T [email protected]it sayspermission denied (public key)but the pub key on my client computer is also in.ssh/authorized_keys? authorized_keyshas the proper content also, with for each line:command= "/opt/gitlab/apps/"I have also noticed that I cannot display the content of
authorized_keysfile with asudo -su git nano authorized_keysbecause:the user is not in the sudoers file.
But
sudo /opt/gitlab/apps/gitlab/gitlab-shell/bin/checkreturnsokfor each verification (gitlab api, acces, repo and/home/git/.ssh/authorized_keysfile (because i have set in th config.yml gitlab_url to : http://myserver.com/gitlab (local server ip address) instead of http://loopbackaddress.com/gitlab). I have noticed that i have « two versions » of the gitlab-shell directory, one in/optand one in/homeand i don't know if it it is the appropriated demeanor ?- When i try a
ssh -Tvit seems the ssh server does not even accept my key, fail to authenticate and return « permission denied » at last. - Also nothing special in the
/var/log/auth.logfiles other than sshd[number] : connection closed by IP address. - The authorized_keys file path is set to the correct absolute url in the
/etc/ssh/sshd_configfile (/home/git/.ssh/authorized_keys) - And finally i am unable to debug with « bundle exec bin/rake » since i am not able to make my ubuntu install all the required pacakge to execute bundle.
I am almost sure it's either a simple ssh misconfiguration or something wrong when invoking the command="/opt/...../gitlab-shell" in the authorized_keys file
PS: using git with HTTP protocole would be enough for my home server but the interest of the gitlab dashboard is to easily add a contributors by filling the ssh key in the web form and using ssh after