2

I am having trouble getting to use sock proxy when cloning using ssh url. I am behind a firewall. I have made the below change to the config file:

Host git@bitbucket.org       
HostName git@bitbucket.org 
ProxyCommand connect -S proxyhostname:proxyPortNumber %h %p"

However when I clone I can see this error message:

could not read from remote repository

I am new to this so not sure if there are any other configs I should be using.

Evaldas Buinauskas
  • 13,739
  • 11
  • 55
  • 107
C Kingsley
  • 228
  • 1
  • 10
  • 1
    you are mixing up terms. Do you want to use SOCKS proxy or proxy ssh connection. These are different things? Anyway you have wrong `Host` and `Hostname`, since it can't contain username as you have. – Jakuje Oct 16 '15 at 11:39
  • I would like to configure git to use a socks proxy – C Kingsley Oct 16 '15 at 14:18
  • Possible duplicate of [Using a socks proxy with git for the http transport](http://stackoverflow.com/questions/15227130/using-a-socks-proxy-with-git-for-the-http-transport) – Jakuje Oct 16 '15 at 14:28
  • And to create sock proxy, use `ssh -D localhost:9999 proxyhost` – Jakuje Oct 16 '15 at 14:30
  • Thanks but I already have a sock proxy. i would like that when i clone using basically the ssh repository url, i would like the requests to be routed using the socks proxy. the link you sent he seems to be using a socks proxy for a http/https request. – C Kingsley Oct 16 '15 at 15:47
  • This is the link I added in the second comment. – Jakuje Oct 16 '15 at 16:09
  • Thanks for your help. i removed the hostname and added a IdentityFile config to locate the location of the public key – C Kingsley Oct 19 '15 at 09:18

0 Answers0