Skip to content

Commit

Permalink
fix: 新的坑
Browse files Browse the repository at this point in the history
  • Loading branch information
RenderTool committed Jan 25, 2024
1 parent c72425c commit c9662de
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/tools/github/4-ssh-push-failed.md
Original file line number Diff line number Diff line change
Expand Up @@ -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输入

Expand All @@ -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
```

0 comments on commit c9662de

Please sign in to comment.