SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / server / Questions / 379042
In Process
Nicolas GUILLAUME
Nicolas GUILLAUME
Asked: 2012-04-13 18:22:24 +0800 CST2012-04-13 18:22:24 +0800 CST 2012-04-13 18:22:24 +0800 CST

Installing gitosis and closed port? [duplicate]

  • 772
This question already has answers here:
What causes the 'Connection Refused' message? (2 answers)
Closed 6 years ago.

I'm trying to install gitosis on a Server (hosted by OVH and running Ubuntu server 11.04). I've done it a few times and never had any problems.

But this time I have something very wired when I simply try to clone gitosis.

[root@ovks-1:~/]#git clone git://eagain.net/gitosis.git
Cloning into gitosis...
eagain.net[0: 208.78.102.120]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
zsh: exit 128   git clone git://eagain.net/gitosis.git

Based on my searches it looks like the port 9418 is closed.

But I don't understand, a server by definition shouldn't have any closed port and I can't find a way to see if they are.

So how can I check is a port is open and how can I open it if closed?

Thank you for your help.


Requested by WesleyDavid: iptables -L result

[root@odeoos-vks-1:~/]#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

I have no idea what it means... Thanks :)


Update:

I finally cloned gitosis from github using https://github.com/res0nat0r/gitosis.git and it worked.

My guess is that eagain.net has an actual connection problem and that there isn't much I could do about it...

port git connection-refused
  • 1 1 Answers
  • 4292 Views

1 Answers

  • Voted
  1. Wesley
    2012-04-13T18:26:08+08:002012-04-13T18:26:08+08:00

    But I don't understand, a server by definition shouldn't have any closed port and I can't find a way to see if they are.

    I think you are slightly mistaken. A server, by definition, serves. What it serves is chosen by the server administrator. Technically, a server can have all of its ports closed, although that wouldn't be a very useful server... unless it was serving things internally between services.

    So how can I check is a port is open and how can I open it if closed?

    The classic way of determining if a port is open is to telnet to that port and see what banner, if any, you receive. I just tried to telnet to the server you listed and the connection was immediately refused:

    [wesley@Fedora1530 ~]$ telnet eagain.net 9418
    Trying 208.78.102.120...
    telnet: connect to address 208.78.102.120: Connection refused
    

    A more robust way is to use a port scanning and fingerprinting tool like nmap. You can use a GUI front-end if you want it to be friendlier (example: zenmap). I'd scan that server, except it's not mine and that can be construed as hostile, so I'll leave that as an exercise for you, the original poster. =)

    From where I sit, it does indeed look like there is some blockage of port 9418 between you and the git server at eagain.net - and between me and eagen.net for that matter. Contact the server/site operator and ask him "What the dilly, yo?!"


    I'm a little slow on the draw tonight, and just realized that you are the server operator. So... "What the dilly, yo?!"

    Anyway, you need to check iptables for any rules that would be blocking git traffic. Run iptables -L and post the results in your answer.

    • 6

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve