2014-10-11 359 views
3

我對使用GIT很新。我知道增加,承諾,推動和拉動的基本知識。gitlab SSH密鑰項目克隆問題

我的團隊項目存儲在gitlab上。我在工作中設置了公共SSH密鑰,以便我們在項目中一起工作。
我們試圖在家工作,所以我設置了另一個SSH密鑰,我可以克隆項目。我正確設置了SSH密鑰(我確信這......它說我有兩個SSH密鑰存儲在gitlab上),但是當我運行git clone命令時,我收到了這條消息......我可以完全訪問存儲庫。 ..我被列爲所有者。
我在想也許我的Mac有一個問題。也許我沒有配置什麼東西?

ryans-imac:~ ryanchampin$ git clone [email protected]:acr-booth.git 
Cloning into ‘acr-booth’… 
ssh: connect to host gitlab.synapseny.com port 22: Operation timed out 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
+0

什麼'ssh git @ gitlab.synapseny.com'返回嗎?它工作嗎?如果沒有,'ssh -Tvvv git @ gitlab.synapseny.com'返回什麼? – VonC 2014-10-11 15:27:47

+0

沒問題,因此爲ssh [email protected] ......這沒有做任何事情,但基本上凍結我的終端大聲笑......第二個給我這個:ryans-imac:〜ryanchampin $ ssh -Tvvv git @ gitlab.synapseny.com OpenSSH_6.2p2,OSSLShim 0.9.8r 2011年12月8日 DEBUG1:讀取配置數據的/ etc/ssh_config中 DEBUG1:在/ etc/ssh_config中管線20:應用選項* DEBUG2:ssh_connect:needpriv 0 DEBUG1 :連接到gitlab.synapseny.com [66.179.230.168]端口22. debug1:連接到地址66.179.230.168端口22:操作超時 ssh:連接到主機gitlab.synapseny.com端口22:操作超時 – Ryan 2014-10-11 15:53:11

+0

超時?那麼你可以試試http://apple.stackexchange.com/a/86646。 – VonC 2014-10-11 16:00:43

回答

0

首先,檢查你的GitLab服務器從安裝目錄中運行此命令已成功配置:bundle exec rake gitlab:check

接下來,你應該運行此命令嘗試設置gitlab-shellbundle exec rake gitlab:shell:setup