重装系统后遇到Permission denied (publickey).问题的解决方法
2010-03-25 21:09:51
重新安装系统后,使用time machine恢复之后,git不能push 提示报错 : Permission denied (publickey). fatal: The remote end hung up unexpectedly 第一步: terminal运行 ssh git@github.com 如果一切正常你会看到这个: Hi username! You’ve successfully authenticated, but GitHub does not provide shell access. 当然了,实际情况其实是这样的: Permission denied (publickey). 去 https://github.com/account 添加一个新的pubkey,或者edit现在的key,完成 参考文章: http://github.com/guides/providing-your-ssh-key http://github.com/guides/addressing-authentication-problems-with-ssh