スキップしてメイン コンテンツに移動

Windows Proxy下の Vagrant CentOS にて、github への push で 403 エラーが出た (解決せず…)

Windows7/proxy下 の Vagrant 環境からGitHubにpushしようとしてエラーがでた時のメモです。調査の結果、今回は、GitHubへのpushは断念しました。残念。

以下のコマンドを実行して、エラーが出ました。

$ git push origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/et79/checkListApp.git/info/refs

fatal: HTTP request failed

調べた感じ、.git/config を書き換えると上手くようなので、修正してみます。


[remote "origin"] 
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = ssh://git@github.com/username/project.git
url のところで、https:// を ssh:// に変えました。これで、プッシュを再実行すると、
$ git push origin master
ssh: Could not resolve hostname github.com: Name or service not known
fatal: The remote end hung up unexpectedly
sshが動きません。Proxyが問題に成っているっぽいです。

調べると、corkscrew というツールを使えば、ssh を httpプロキシを通して実行できるようです。でも、なんか、コークスクリューって名前がコワイ。ググった時に、栓抜きの検索結果イメージも見ているから、余計こじ開ける感があって、コワイ。。・・・、やめておく事にしました。

折角、環境を作ったのに、残念です。何か、解決策を見つけたら追記したいと思います。


参考

コメント

Amazon Affiliate