Error downloading from GiT: fatal: unable to connect to github.com:

My below command fails with the error as shown:

$ sudo git clone git://github.com/ansible/ansible.git
Cloning into 'ansible'...
fatal: unable to connect to github.com:
github.com[0: 192.30.253.113]: errno=Connection refused
github.com[1: 192.30.253.112]: errno=Connection refused

The ping from my server to github.com is working fine as you can see below:

]$ ping github.com
PING github.com (192.30.253.113) 56(84) bytes of data.
64 bytes from lb-192-30-253-113-iad.github.com (192.30.253.113): icmp_seq=1 ttl=54 time=12.3 ms
64 bytes from lb-192-30-253-113-iad.github.com (192.30.253.113): icmp_seq=2 ttl=54 time=12.3 ms
64 bytes from lb-192-30-253-113-iad.github.com (192.30.253.113): icmp_seq=3 ttl=54 time=12.3 ms
^C
--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 12.303/12.321/12.344/0.129 ms

I m working on Solaris server.

Can you please suggest everything I need to do to fix this problem.

What have you tried?

sudo git clone https://github.com/ansible/ansible.git

works !! Thank you.