如果你使用 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
![[嘿哈]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_67.9ceed33.png)
![[偷笑]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_20.7a46372.png)
![[思考]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_15.f58c082.png)
![[害羞]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_7.eca1535.png)
![[泣不成声]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_40.348108b.png)