[英]When I clone a git repository, why does it not show up in GitHub for Mac?
[英]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.