通过代理启用的网络在github中推送错误?

时间:2013-08-22 18:02:26

标签: git ssh proxy

我在使用代理访问网络的大学网络中。我无法通过ssh和https访问git hub。我已经设置了ssh_config也是netrc但是收到错误。请帮帮我?

git push -u origin master Permission denied (publickey). fatal: The remote end hung up unexpectedly

我的ssh配置文件

SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no


Host github.com
ProxyCommand /usr/bin/corkscrew 202.141.80.19 3128 %h %p ~/.ssh/myauth
User git
Port 443
Hostname ssh.github.com
TCPKeepAlive yes
IdentitiesOnly yes

我的netrc包含

`machine github.com
`username   user@gmail.com`
`password   password`

1 个答案:

答案 0 :(得分:1)

  • 检查您的存储库配置:git remote -v应该为您提供表单的网址:

git@github.com:yournick/yourproject.git

  • 检查您的私人SSH密钥是否列在github account上。如果是,您应该能够ssh git@github.com看到类似的内容:

Hi yournick! You've successfully authenticated, but GitHub does not provide shell access.

另见: