如果你使用 git clone/pull 等命令时,提示输入密码,并且无论输入什么密码都不行。
```
$ git pull origin dev
(git@github.com) Password:
```
请尝试以下解决方案:
1. 执行命令:`ssh -T -p 443 git@ssh.github.com`
2. 执行命令:`vi ~/.ssh/config`
写入以下内容:
```
Host github.com
Hostname ssh.github.com
Port 443
User git
```
执行完以上步骤,再次执行 git clone/pull 命令即可。
```
$ git pull origin dev
(git@github.com) Password:
```
请尝试以下解决方案:
1. 执行命令:`ssh -T -p 443 git@ssh.github.com`
2. 执行命令:`vi ~/.ssh/config`
写入以下内容:
```
Host github.com
Hostname ssh.github.com
Port 443
User git
```
执行完以上步骤,再次执行 git clone/pull 命令即可。
展开
评论
2