ssh git@192.168.2.129 不能连接gitlab

发布于 2022-08-29 20:56:32 字数 1353 浏览 15 评论 0

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:inopen'
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:intimeout'
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:indo_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:inget'
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:inuser'
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:inexec'
from /opt/gitlab-7.2.1-1/apps/gitlab/gitlab-shell/bin/gitlab-shell:16:in `'
Connection to 192.168.2.129 closed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

辞取 2022-09-05 20:56:32

修改/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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文