2016-01-04 176 views
1

嘗試從git clone下載並構建Gobblin時。通過遵循,下載並建立本地Gobblin 在本地計算機,克隆Gobblin庫:Gobblin Git克隆錯誤

git clone [email protected]:linkedin/gobblin.git 

它給我的Amazon EC2實例以下錯誤。

$ git clone [email protected]:linkedin/gobblin.git 
Cloning into 'gobblin'... 
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. 
Permission denied (publickey). 
fatal: Could not read from remote repository. 

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

如何避免該錯誤信息?

+0

您需要配置SSH密鑰允許的Git與Gobblin服務器通信。請閱讀在線文檔。 –

回答

0

的問題是不是與妖精服務器進行通信,但你的EC2實例和github.com之間的通信(通過SSH)

當執行一個SSH命令(或git的克隆SSH),SSH將尋找您的ec2用戶帳戶$HOME/.ssh文件夾中的公鑰/私鑰。

請確保您已按照「Generating SSH keys」的順序在您的EC2帳戶中生成正確的密鑰,並在您的GitHub帳戶上聲明公鑰。

另一種方法是切換到https:

git clone https://github.com/linkedin/gobblin.git