-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c72425c
commit c9662de
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ [email protected]: Permission denied (publickey). fatal: Could not read from remote | |
|
||
1. [CSDN](https://blog.csdn.net/W_317/article/details/106518894) | ||
|
||
## 问题复现 | ||
## 方案1 | ||
|
||
1. cmd输入 | ||
|
||
|
@@ -37,4 +37,12 @@ [email protected]: Permission denied (publickey). fatal: Could not read from remote | |
|
||
3.然后将 `id_rsa.pub` 文件内容复制到github上。 | ||
|
||
![sshkeyupdata.png](assets%2Fsshkeyupdata.png) | ||
![sshkeyupdata.png](assets%2Fsshkeyupdata.png) | ||
|
||
## 方案2 | ||
>C:\Users\admin\.ssh 下新建config,然后添加下面的代码 | ||
```text | ||
Host github.com | ||
HostName ssh.github.com | ||
``` |