您的位置:首页 > 编程语言

Git使用SSH提交代码到服务器出现 permission denied (publickey).

2014-05-12 22:35 525 查看
在GitBush中向已经存在的Repository提交README.md修改。命令如下:

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin
git@github.com:yunfuyiren/Test.gitgit push -u origin master
出现如下错误:



找了半天原因原来是没有安装SSH Key。首先需要在客户端上安装SSH Key,此外还需要在远程github服务端,个人设置中添加SSHKey。具体操作步骤如下帖:https://help.github.com/articles/generating-ssh-keys
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: