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

时间:2023-03-09 01:36:23
解决GitHub未配置SSH key提示错误信息
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.

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

按照官方教程即可搞定