ssh配的,ssh也能连上,
push代码就报错
git push -u origin master
git@oschina.net's password:
Permission denied, please try again.
git@oschina.net's password:
Permission denied, please try again.
git@oschina.net's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
公钥没配成功,重新配置一遍
请检查是否配到部署公钥去了,部署公钥的话是只读权限,无法写
应该加到http:git.oscihna.net/keys
回复<aclass='referer'target='_blank'>@Zoker:这个地址就是公chi啊我已经把网址都给你贴出来了这个要改哪里好像是的ssh-vTgit@git.oschina.net发出来看下
--------
[UPDATE]
不用发了,你的地址弄错了,是git@git.oschina.net不是git@oschina.net
这个要怎么解决,公司的电脑上不成功,在家能用Theauthenticityofhost'oschina.net(112.124.5.74)'can'tbeestablished.RSAkeyfingerprintis谢谢啊远程地址是git@git.oschina.net:你的短地址/项目名.git
删除gitremotermorigin
添加gitremoteaddorigin <spanstyle="font-size:13.3333px;">git@git.oschina.net:你的短地址/项目名.git
解决了,谢谢,我没用这个,我把本地的.git文件夹删除了重新init就OK了,但还是谢谢你<imgsrc="/js/ke/plugins/emoticons/0.gif"alt="0"/>版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。