无法从Ubuntu中的bitbucket克隆git存储库
问题描述:
我是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 我错过了什么?我不明白。
答
即使我面临同样的问题,当我从一个回购克隆到我的本地使用git。请确保您已正确生成公钥和私钥:https://help.github.com/articles/generating-ssh-keys/并将id_rsa(私钥)置于您的主目录下的.ssh文件夹中
for bitbucket:https://confluence.atlassian.com/bitbucket/set- up-ssh-for-git-728138079.html – ranjansaga
谢谢!我的朋友@ranjansaga,它的工作。非常感谢。 – Learner