解决GitHub未配置SSH key提示错误信息

遇到GitHubforWindows配置SSHKEY无法在命令行使用的错误,通过在GitBash中配置SSHKEY成功解决。遇到输入密码时不显示的问题,官方解释为即使看不到输入,命令行仍能读取输入。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 似乎GitHub for Windows 设置的ssh key在命令行下就不能用。只需在Git Bash配置SSH KEY就可以解决

参考:GitHub Help

中途遇到个问题,在输入passphrase时,按键盘但Git Bash上无显示,特咨询GitHub,得到如下答复:

 

That is how the password question works. Most password fields show a * character, but the command line doesn't show anything.

It's a little inconvenient, but even though it doesn't show anything it is reading what you type.

 

解释为:即使你看不见,但仍在读入你输入的东西

按照官方教程即可搞定

转载于:https://www.cnblogs.com/gabygoole/p/5382325.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值