我想通過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