wuxqing
V2EX  ›  问与答

装了 GitLab,使用 ssh 方式 push 会报错

  •  
  •   wuxqing · Mar 5, 2014 · 4584 views
    This topic created in 4497 days ago, the information mentioned may be changed or developed.
    OS:CentOS 6.5
    Components:
    GitLab 6.6.4
    GitLab Shell 1.8.0
    GitLab API v3
    Ruby 2.0.0p353
    Rails 4.0.3

    http方式的push是正常的

    采用ssh方式push,会提示:
    fatal: protocol error: bad line length character: This

    会是GitLab安装的问题吗?
    本机ssh方式push 到github是正常的
    2 replies    1970-01-01 08:00:00 +08:00
    kukat
        1
    kukat  
       Mar 5, 2014
    DO一键部署无压力。

    我司部署在AWS上的Gitlab还在6.0,SA不给升级。。。
    wuxqing
        2
    wuxqing  
    OP
       Mar 5, 2014
    看到解决方案:
    “I assigned the 'gitlab-shell' to the git user.”
    不知道咋咋整

    把git的权限改了:
    /sbin/nologin -> /bin/sh

    OK了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3154 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:51 · PVG 13:51 · LAX 22:51 · JFK 01:51
    ♥ Do have faith in what you're doing.