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)

  1. i have launched bitnami-installer.run root user think files went in /opt instead of /home (this procedure?)
  2. i didn't have git user before installing gitlab since heard make confusion in .ssh/authorized_keys files , other permissions.
  3. when run ssh -t git@my-server.com says permission denied (public key) pub key on client computer in .ssh/authorized_keys?
  4. authorized_keys has proper content also, each line:

    command= "/opt/gitlab/apps/" 
  5. i have noticed cannot display content of authorized_keys file sudo -su git nano authorized_keys because:

    the user not in sudoers file.

  6. but sudo /opt/gitlab/apps/gitlab/gitlab-shell/bin/check returns ok 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 ?

  7. when try ssh -tv seems ssh server not accept key, fail authenticate , return « permission denied » @ last.
  8. also nothing special in /var/log/auth.log files other sshd[number] : connection closed ip address.
  9. the authorized_keys file path set correct absolute url in /etc/ssh/sshd_config file (/home/git/.ssh/authorized_keys)
  10. 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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -