2015-04-16 495 views
0

我有一个连接到我的GitLab帐户的问题。我已经生成了公钥并添加到我的配置文件中,但是当我尝试通过ssh进行连接时,它拒绝了权限。GitLab权限被拒绝通过ssh连接

[email protected]:~$ ssh [email protected] 
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). 

问候。

回答

0

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

​​