LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2011, 05:31 AM   #1
k.kshitij
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd not working: Connection attempt failed with "ECONNREFUSED - Connection refused davidlu766 Linux - Server 7 05-03-2010 09:34 PM
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 04:46 PM
Git fatal: invalid reference: master fester225 Linux - Virtualization and Cloud 1 01-05-2010 11:41 PM
Cannot push with git. Error Message: "fatal: The remote end hung up unexpectedly" braclayrab Linux - Software 2 07-11-2008 02:41 PM
X-server fatal error,KDM refused to start callitdctr Linux - Software 3 07-01-2005 09:46 AM


All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration