Win7 Git Permission denied (publickey)
来源:互联网 发布:如何投资理财 知乎 编辑:程序博客网 时间:2024/05/16 15:54
在Win7上安装git后,用ssh -T git@github.com 测试,报错:Permission denied (publickey),谷歌了很多文章,有说着说那的,感觉都不是很靠谱,最后发现了这个答案:
Using Windows 8 to setup your ssh and GithubIf it says "Permission denied (publickey)" you will have to put in a passphrase for your key. Do not be tempted to just press enter...this was what worked for me...it took me five hours to realize that pressing enter made OpenSSH feel that your key was too public so that is why it is denying you from going to the next step.If it says "The authenticity of host 'github.com (203.232.175.90)' can't be established." Then you will have to go through the process shown here: [Google] (https://help.github.com/articles/error-permission-denied-publickey.)Go to the part that says "Verify the public key is attached to your GitHub account". You want to start with the part that says account. (I am assuming you already have an account.Also, you want to be in C:\RailsInstaller\Git.ssh and when I did 'dir' I noticed that I had '.', '..', 'known_hosts'. I had to get a new key by doing the following (I found this on the Github site):"ssh-keygen -t rsa -C "your_email@example.com" # Creates a new ssh key, using the provided email as a label # Generating public/private rsa key pair. < # Enter file in which to save the key(/c/Users/you/.ssh/id_rsa): [Press enter]"And pay attention to the file where the key will be saved. Do not just press enter.. my one showed "(//.ssh/id_rsa)" I had to type "/.ssh/id_rsa" to make sure it was in the right directory.And you should be able to type ssh in the command line. If you cannot do that you will have to add it to your path.
原文链接:http://stackoverflow.com/questions/2127104/permission-denied-publickey-error-using-git-on-windows-7
0 0
- Win7 Git Permission denied (publickey)
- Git - Permission denied (publickey)
- Git - Permission denied (publickey)
- Win7 Git bash 出现Permission denied (publickey)错误
- ec2 git Permission denied (publickey)
- git clone permission denied(publickey)
- git Permission denied (publickey) 问题
- Git Permission denied (publickey) 解决
- git permission denied (publickey) 解决办法
- git clone Permission denied (publickey).
- Git-Error-Permission denied (publickey).
- GIT设置错误:Error: Permission denied (publickey)
- SSH Server And “Permission denied (publickey) git
- git push遇到的Permission denied (publickey).
- git ssh——Permission denied (publickey).
- Error: Permission denied (publickey) git window7
- git出现错误:Permission denied (publickey).解决方法
- 解决git提示Permission denied (publickey)
- jxl读取excel去除空行
- Java数组问题(二)
- 动态库和静态库浅析
- nl 查看文件内容(添加行号打印)
- 微信公众平台开发(七) 聊天机器人功能开发
- Win7 Git Permission denied (publickey)
- Facebook SDK 的添加基本流程(Android)
- HDOJ 1084 What Is Your Grade?
- Eclipse使用技巧记录
- 微信公众平台开发(八) 自定义菜单功能开发
- 关于TabHost的详细解析
- 微信公众平台开发(九) 数据库操作
- CodeForces 337D——Book of Evil(数据结构)
- PHP解决mui前端框架中的ajax请求跨域问题