GitHubã«ãããã·çµç±ã§pushãã(Windowsç°å¢)
ç°¡åããã§æå¤ã¨ç°¡åã«ã§ããªããã°ã°ãã¨è²ããªæ¹æ³ãããããã§ããããæ··ä¹±ã®å ã¨ãªã£ã¦ããããã«æãã¾ããããã«ãLinuxã¨Windowsã¨ããç°å¢ã®éãããããã
GitHubèªä½ã¯HTTPSã«å¯¾å¿ãã¦ãããããªãã§ãããã©ãããã¡ã®ç°å¢ã ã¨NGã¿ããã§ãããªã®ã§å°æ¥çã«ã¯ãä¸è¨ã®HTTPãããã·ã®è¨å®ã ãã§ããããã
git config http.proxy http://my.proxy.url:80
èªè¨¼ãããã·ã ã¨ããããªã
git config http.proxy http://user:[email protected]:80
ããã§ãã¾ããã幸ããªäººã¯ã以éã®è©±ã¯ä¸è¦ãªã®ã§ç¡è¦ãã¦ãã ããã
æ®å¿µãªããç§ã¯ãã¾ããããªãã£ãç°å¢ã§ãããã§ãã¨ããããHTTPSã¯ãããããSSHçµç±ã§ã®pushã§ãã¾ãããã¾ãããåèã«ãããµã¤ãã¯ここã§ãã
å¿ è¦ãªãã®
- msysgit
- connect.c バイナリ
è¨å®
- msysgitã¯OpenSSHãªãã·ã§ã³ã§ã¤ã³ã¹ãã¼ã«ãã¦ããã¦ãã ããã
- SSHèªè¨¼éµã®ä½æ
- ä¸è¨ã³ãã³ãã§ä½æãã¾ããè²ã ã¨èããã¾ããå ¨é¨ã¨ã³ã¿ã¼ã§ããã£ãããã¹ãã¬ã¼ãºãè¨å®ããããã°è¨å®ãã¦ãã ããã
ssh-keygen
- ããã§%HOME%\.sshãã©ã«ã以ä¸ã«ãid_rsaã¨id_rsa.pubãã§ããããã¾ãã
- çæããid_rsa.pubã®ä¸èº«ãã¯ãªãããã¼ãã«ã³ãã¼ããGitHubã«ç»é²ãã¦ããã¾ãã
- GitHubのアカウント設定画面ãããPublic SSH Keysã§éµã®ç»é²ãã§ãã¾ãã
- %HOME%\.ssh\config ãã¡ã¤ã«ãä½æããä¸è¨å 容ãæ¸ãã¾ããããããããã·çµç±ã§GitHubã®SSHãµã¼ãã«ã¢ã¯ã»ã¹ããè¨å®ã¨ãªã£ã¦ãã¾ãã
ProxyCommand C:/tools/connect.exe -H username@proxy.example.com:443 %h %p Host github.com User git Port 22 Hostname github.com IdentityFile "C:\Document and Settings\username\\.ssh\id_rsa" TCPKeepAlive yes IdentitiesOnly yes Host ssh.github.com User git Port 443 Hostname ssh.github.com IdentityFile "C:\Document and Settings\username\\.ssh\id_rsa" TCPKeepAlive yes IdentitiesOnly yes
-
- ç¨æããconnect.exeãProxyCommandã§è¨å®ãã¦ããã¾ããããã§ãSSH over HTTP Proxyãã§ããããã«ãªãã¾ãã
- ããã¯Gitã¨ã¯ç¡é¢ä¿ã§ãããHTTPãããã·ã®èå¾ããSSHæ¥ç¶ãããå ´åã«æå¹ãªãã¯ããã¯ãªã®ã§è¦ãã¦ããã¦æã¯ãªãã§ãã
以ä¸ã§è¨å®ã¯çµããã§ããå¾ã¯ãªãã¸ããªã«å¯¾ãã¦ãSSHç¨ã®URLã§ã¢ã¯ã»ã¹ããã°OKã