Why does ssh connection to gitlab not work (while http push and clone work fine)?

前端 未结 4 2405
野的像风
野的像风 2021-02-20 11:48

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:

         


        
4条回答
  •  独厮守ぢ
    2021-02-20 12:15

    I had a same error. searched and tried many way. It didn't work. Then, i found the answer in this site [http://georgik.sinusgear.com1. It worked for me.

    My gitlab's version is 6.6.4.

    Do as below:

    1. find port unicorn run on:

      sudo emacs /home/git/gitlab/config/unicorn.rb

    scroll to # listen on both a Unix domain socket and a TCP port and found that: listen "127.0.0.1:port", :tcp_nopush => true

    1. edit config.yml

      sudo emacs /home/git/gitlab-shell/config.yml

    change gitlab_url: "your-domain"

    to

    gitlab_url: "127.0.0.1:[port]"

    restart gitlab

    sudo service gitlab stop

    sudo service gitlab start

提交回复
热议问题