美文网首页
Git SSH 配置以及git操作Authentication

Git SSH 配置以及git操作Authentication

作者: 心淡然如水 | 来源:发表于2019-01-19 12:13 被阅读9次

配置ssh公钥访问oschina

使用ssh-kengen工具生成公钥(public key)

ssh-keygen -t rsa -C "xiahouzuoxin@163.com"# Creates a new ssh key using the provided email # Generating public/private rsa key pair...

查看生成的公钥,并将公钥内容拷贝添加到Git @ OSC http://git.oschina.net/keys


通过如下的命令可以查看是否设置公钥成功

Authentication failed for 问题解决:

如果push遇到在输入密码是熟错后,就会报这个错误fatal: Authentication failed for

解决办法:

git config --system --unset credential.helper

之后你在push就会提示输入名称和密码

相关文章

网友评论

      本文标题:Git SSH 配置以及git操作Authentication

      本文链接:https://www.haomeiwen.com/subject/tagadqtx.html