GitLab权限拒绝通过ssh连接

时间:2015-04-16 07:51:40

标签: gitlab gitlab-7

我在连接到GitLab帐户时遇到问题。我已生成公钥并添加到我的个人资料中,但当我尝试通过ssh连接时,它会拒绝权限。

vicent@DARKNESS:~$ ssh git@gitlab.com
The authenticity of host 'gitlab.com (54.93.71.23)' can't be established.
ECDSA key fingerprint is (myfingerprint).
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.com,54.93.71.23' (ECDSA) to the list of known hosts.
Permission denied (publickey).

问候。

1 个答案:

答案 0 :(得分:0)

我不认为你可以直接在gitlab.com服务器上登录为git用户,这不是你自己的服务器,而是Gitlab的公共实例。如果您想通过SSH将代码推送到gitlab.com上托管的repo,请使用git:

git remote add origin git@gitlab.com:username_or_namespace/project_name.git
git push origin master