我在使用代理访问网络的大学网络中。我无法通过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`
答案 0 :(得分:1)
git remote -v
应该为您提供表单的网址: git@github.com:yournick/yourproject.git
ssh git@github.com
看到类似的内容: Hi yournick! You've successfully authenticated, but GitHub does not provide shell access.
另见: