2013-10-19 115 views
15

于是我开始生产使用以下命令的哲基尔网站,权限被拒绝(公钥)/致命:远程端意外挂断?

$ git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com 
$ cd USERNAME.github.com 
$ git remote set-url origin [email protected]:USERNAME/USERNAME.github.com.git 

得到当地和GitHub库建立后,我试图改变发送到github上,

$ git push origin master 

到找到这个,

Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts. 
Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

我做错了什么?我能做些什么来解决这个错误?

回答

16

问题是你还没有用Github初始化SSH密钥。这解决了这个问题对我来说:

cd ~/.ssh && ssh-keygen 
cat id_rsa.pub 

和密钥复制到Github上网站的SSH设置。

然后你很好继续。

0

如果你正在推动大型文件,那么试试这个,这将推动容量改为500 MB

$ git config http.postBuffer 524288000 

或试试这个,原点设置掌握

$ git push origin master 

或检查您的代理设置的互联网连接。如果您使用的是一些代理,然后将其更改为noproxy。 git push将在noproxy模式下工作。

相关问题