MacHerodeMacBook-Pro:~ machero$ ssh git@192.168.2.129
PTY allocation request failed on channel 0
/opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/net/http.rb:878:in initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/net/http.rb:878:in
open'
from /opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/net/http.rb:878:in block in connect'
from /opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/timeout.rb:52:in
timeout'
from /opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/net/http.rb:877:in connect'
from /opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/net/http.rb:862:in
do_start'
from /opt/gitlab-7.2.1-1/ruby/lib/ruby/2.0.0/net/http.rb:851:in start'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/lib/gitlab_net.rb:79:in
get'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/lib/gitlab_net.rb:38:in discover'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/lib/gitlab_shell.rb:77:in
user'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/lib/gitlab_shell.rb:82:in username'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/lib/gitlab_shell.rb:36:in
exec'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/bin/gitlab-shell:16:in `'
Connection to 192.168.2.129 closed.
修改/home/git/gitlab-shell/config.yml
# GitLab user. git by default
user: git
# Url to gitlab instance. Used for api calls. Should end with a slash.
# Default: http://localhost:8080/
# You only have to change the default if you have configured Unicorn
# to listen on a custom port, or if you have configured Unicorn to
# only listen on a Unix domain socket.
gitlab_url: "http://localhost:80/"
http_settings:
# user: someone
# password: somepass
# ca_file: /etc/ssl/cert.pem
# ca_path: /etc/pki/tls/certs
self_signed_cert: false
默认是8080端口,我用gitlab web服务起用的是80端口 改一下端口就行了
参考http://blog.csdn.net/black_ox/article/details/17753943