GITLAB上git用户的交互式服务

GITLAB上git用户的交互式服务,git,ssh,gitlab,Git,Ssh,Gitlab,我安装了gitlab,尝试执行以下操作时: ssh git@domain.com 我得到以下错误 PTY allocation request failed on channel 0 Welcome to GitLab, Jhon! Connection to domain.com closed. 我在其中一个帖子中读到了以下评论: 您不能以git用户的身份ssh到gitlab服务器,即使您已经通过gitlab添加了ssh密钥,这也是不允许的。您只能作为git用户推/拉。如果需要,您可以

我安装了gitlab,尝试执行以下操作时:

ssh git@domain.com
我得到以下错误

PTY allocation request failed on channel 0

Welcome to GitLab, Jhon!

Connection to domain.com closed.
我在其中一个帖子中读到了以下评论:

您不能以git用户的身份ssh到gitlab服务器,即使您已经通过gitlab添加了ssh密钥,这也是不允许的。您只能作为git用户推/拉。如果需要,您可以以root用户身份登录

所有情况都是这样吗。我在centos 6.5上安装了gitlab。我只是想确保我们不能在gitlab上为git用户启用交互式服务,我得到的结果应该是预期的结果

我只是想确保我们不能在gitlab上为git用户启用交互式服务,我得到的结果应该是预期的结果

是的,除非您可以通过以下方式消除第一条错误消息:

ssh -T git@domain
见“

GitLab使用ssh和,这意味着没有交互式shell

注意:git shell错误消息“
您认为我是什么?shell?
”不再显示,现在显示:

 Interactive git shell is not enabled