LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fatal Connection refused when assessing git (https://www.linuxquestions.org/questions/linux-newbie-8/fatal-connection-refused-when-assessing-git-873739/)

k.kshitij 04-08-2011 04:31 AM

Fatal Connection refused when assessing git
 
Hi, I wanted to download a public repository, from sourceforge.net.
I have tried using socat and configure my proxy but with no success, I have given the detailed specification for configuration of the ssh below,

host cfdem
user git
hostname cfdem.sourceforge.net
port 22
proxycommand socat - PROXY:x.x.x.x:%h:%p,proxyport=3128,proxyauth=username- password
.ssh/config (END)

Also the shell script for the proxy we have constituted is as follows

#!/bin/bash
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# /usr/bin/socat - PROXY:x.x.x.x. 7:\$1:\$2,proxyport=3128
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at http://tinyurl.com/8xvpny

# Configuration. Common proxy ports are 3128, 8123, 8000.
_proxy=x.x.x.x
_proxyport=3128
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport,proxyauth=username password
gitproxy (END)

Can you please guide us if we have correctly followed the constitution for socat and creating the proxy overall.


All times are GMT -5. The time now is 08:12 PM.