簡體   English   中英

為什么在嘗試克隆 Github 存儲庫時出現 SSH 錯誤?

[英]Why am I getting an SSH error when trying to clone a Github Repository?

當我嘗試使用 SSH 將 Github Repo 克隆到我的桌面時,出現以下錯誤

Cloning into 'prework-about-me'...
/Users/eugeneho/.ssh/config line 4: garbage at end of line; ".ssh/id_rsa".
/Users/eugeneho/.ssh/config: terminating, 1 bad configuration options
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

這是我的配置文件的樣子

eugeneho@Eugenes-MacBook-Pro .ssh % cat config
Host *
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/ .ssh/id_rsa

這是我的 id_rsa 文件的樣子

-----BEGIN OPENSSH PRIVATE KEY-----
(my key is here)
-----END OPENSSH PRIVATE KEY-----

這是我的文件結構文件結構

您的~/.ssh/config文件中似乎有不必要的空間:

IdentityFile ~/ .ssh/id_rsa
               ^

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM