無法推送到本機伺服器(公鑰)身份驗證上的 git,然後斷開連接

無法推送到本機伺服器(公鑰)身份驗證上的 git,然後斷開連接

我最近按照本指南使用 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存取權限。

相關內容