2015-11-05 124 views
0

我是Ubuntu新手,git和bitbucket。無法從Ubuntu中的bitbucket克隆git存儲庫

所以,這裏是我的問題:

當我從到位桶克隆爲HTTPS,它給了我這個錯誤:

fatal: unable to access ' https://[email protected]/project/my_project.git/ ': Failed to connect to bitbucket.org port 443: Network is unreachable

如果我從到位桶克隆用ssh它給了我這個錯誤:

Cloning into 'my_project'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

我已經在我的Ubuntu 14.04安裝的Git 我錯過了什麼?我不明白。

回答

2

即使我面臨同樣的問題,當我從一個回購克隆到我的本地使用git。請確保您已正確生成公鑰和私鑰:https://help.github.com/articles/generating-ssh-keys/並將id_rsa(私鑰)置於您的主目錄下的.ssh文件夾中

+0

for bitbucket:https://confluence.atlassian.com/bitbucket/set- up-ssh-for-git-728138079.html – ranjansaga

+0

謝謝!我的朋友@ranjansaga,它的工作。非常感謝。 – Learner