我想通过ssh在Mac上克隆一个git仓库。 步骤我迄今使用ssh克隆Git Repositroy
- 创建
id_rsa.pub
遵循和使用管理的接入。文件位于/Users/admin/.ssh
创建一个
config
文件在/Users/admin/.ssh
分享。文件内容是Host MY_DOMAIN IdentityFile ~/.ssh/id_rsa IdentitiesOnly yes
我在终端
git clone [email protected]_DOMAIN:android.git git clone [email protected]_DOMAIN:android
运行下面的命令,我得到的反应是
Cloning into 'android'...
Enter passphrase for key '/Users/admin/.ssh/id_rsa':
Connection to MY_DOMAIN closed by remote host.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我就有点糊涂了,如果我遵循正确的方法或有任何访问权限问题。
请显示gitolite配置。 – merlin2011