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.runrootuser think files went in/optinstead of/home(this procedure?) - i didn't have
gituser before installing gitlab since heard make confusion in.ssh/authorized_keysfiles , other permissions. - when run
ssh -t git@my-server.comsayspermission denied (public key)pub key on client computer in.ssh/authorized_keys? authorized_keyshas proper content also, each line:command= "/opt/gitlab/apps/"i have noticed cannot display content of
authorized_keysfilesudo -su git nano authorized_keysbecause:the user not in sudoers file.
but
sudo /opt/gitlab/apps/gitlab/gitlab-shell/bin/checkreturnsokeach verification (gitlab api, acces, repo ,/home/git/.ssh/authorized_keysfile (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 -tvseems ssh server not accept key, fail authenticate , return « permission denied » @ last. - also nothing special in
/var/log/auth.logfiles other sshd[number] : connection closed ip address. - the authorized_keys file path set correct absolute url in
/etc/ssh/sshd_configfile (/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