我最近按照本指南使用 Gitlab 设置了一个本地测试服务器https://www.digitalocean.com/community/tutorials/how-to-set-up-gitlab-as-your-very-own-private-github-clone
我正在尝试使用我在 Gitlab 界面中创建的管理员帐户进行第一次提交。我已添加我的公钥,这是我在客户端计算机上生成的唯一密钥。这是我尝试推送时的输出:
$ git push -u origin master
Access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
这是我的 auth.log
Sep 28 23:35:32 KSubuntu02 sshd[1124]: Accepted publickey for git from 10.2.0.26 port 54658 ssh2: RSA fd:a6:2b:48:5d:9d:f9:6d:1a:93:cf:6e:f5:93:28:ac
Sep 28 23:35:32 KSubuntu02 sshd[1124]: pam_unix(sshd:session): session opened for user git by (uid=0)
Sep 28 23:35:32 KSubuntu02 systemd-logind[5524]: New session 33 of user git.
Sep 28 23:35:32 KSubuntu02 sshd[1172]: Received disconnect from 10.2.0.26: 11: disconnected by user
Sep 28 23:35:32 KSubuntu02 sshd[1124]: pam_unix(sshd:session): session closed for user git
陷入这种情况后,我可以做些什么来尝试解决此问题?我在客户端 (mac) 和服务器 (Ubuntu 14) 上都有 root 访问权限。