解决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.

 

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

按照官方教程即可搞定

posted @ 2016-04-12 13:35  Gabyler  阅读(469)  评论(0编辑  收藏  举报