ubuntu - Why does ssh connection to gitlab not work (while http push and clone work fine)? -
i run x86 raring ringtail on old pc , having installed bitnami gitlab 5.3.
here error msg when trying push first master branch in ssh mode:
fatal: not read remote repository. please make sure have correct access rights , repository exists.
(it works in http protocol gitlab web dashboard credentials)
- i have launched
bitnami-installer.run
root
user think files went in/opt
instead of/home
(this procedure?) - i didn't have
git
user before installing gitlab since heard make confusion in.ssh/authorized_keys
files , other permissions. - when run
ssh -t git@my-server.com
sayspermission denied (public key)
pub key on client computer in.ssh/authorized_keys
? authorized_keys
has proper content also, each line:command= "/opt/gitlab/apps/"
i have noticed cannot display content of
authorized_keys
filesudo -su git nano authorized_keys
because:the user not in sudoers file.
but
sudo /opt/gitlab/apps/gitlab/gitlab-shell/bin/check
returnsok
each verification (gitlab api, acces, repo ,/home/git/.ssh/authorized_keys
file (because have set in th config.yml gitlab_url : http://myserver.com/gitlab (local server ip address) instead of http://loopbackaddress.com/gitlab). have noticed have « 2 versions » of gitlab-shell directory, 1 in/opt
, 1 in/home
, don't know if it appropriated demeanor ?- when try
ssh -tv
seems ssh server not accept key, fail authenticate , return « permission denied » @ last. - also nothing special in
/var/log/auth.log
files other sshd[number] : connection closed ip address
. - the authorized_keys file path set correct absolute url in
/etc/ssh/sshd_config
file (/home/git/.ssh/authorized_keys) - and unable debug « bundle exec bin/rake » since not able make ubuntu install required pacakge execute bundle.
i sure it's either simple ssh misconfiguration or wrong when invoking command="/opt/...../gitlab-shell"
in authorized_keys file
ps: using git http protocole enough home server interest of gitlab dashboard add contributors filling ssh key in web form , using ssh after
i've got following error trying clone repo via ssh freshly installed gitlab:
fatal: not read remote repository.
please make sure have correct access rights , repository exists.
solution found @ https://github.com/gitlabhq/gitlab-public-wiki/wiki/trouble-shooting-guide#ssh
check ssh log /var/log/auth.log , if find error:
user git not allowed because account locked
then edit /etc/shadow
, change git:!: git:*:
p.s. in case on centos 6.5 /var/log/secure , git:!!:
Comments
Post a Comment