我在Mac上並試圖克隆在另一臺機器上創建的回報,並使用私人github帳戶創建。儘管驗證成功,但無法克隆回購
我經歷了典型的SSH密鑰步驟,但出於某種原因,我仍然無法使用SSH進行克隆。
當我運行:
ssh -T [email protected]<private account>
我得到
Hi <private account>! You've successfully authenticated, but GitHub does not provide shell access.
我的〜/ .ssh/config中
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
Host github.com-<private account>
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_****
IdentitiesOnly yes
當我克隆:
Cloning into 'my repo'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我不會得到任何不尋常的:
ssh -v [email protected]<private account>
回購與git的1.9.1創建的,而我試圖用2.11.0克隆。這可能會有所作爲嗎?
您正在使用什麼命令克隆? –
git clone [email protected]:/ .git,這是github上的克隆或下載按鈕提供的url –