配置ssh公钥访问oschina
使用ssh-kengen工具生成公钥(public key)
查看生成的公钥,并将公钥内容拷贝添加到Git @ OSC http://git.oschina.net/keys
通过如下的命令可以查看是否设置公钥成功
Authentication failed for 问题解决:
如果push遇到在输入密码是熟错后,就会报这个错误fatal: Authentication failed for
解决办法:
git config --system --unset credential.helper
之后你在push就会提示输入名称和密码