3
When I try to clone a repository through Git Bash by command line it returns me this error, as in the image below:
I’m on a corporate network, can it be the firewall blocking me? Has anyone ever been through anything like?
3
When I try to clone a repository through Git Bash by command line it returns me this error, as in the image below:
I’m on a corporate network, can it be the firewall blocking me? Has anyone ever been through anything like?
5
I had the same problem and found the following solution.
Error message:
ssh -v [email protected]
OpenSSH_5.8p1, OpenSSL 1.0.0d 8 Feb 2011
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: connect to address 207.97.227.239 port 22: Connection timed out
ssh: connect to host github.com port 22: Connection timed out
ssh: connect to host github.com port 22: Bad file number
You will see a bad file number message when you are on Windows using MINGGW shell and for linux users Timed out.
Problem:
SSH is blocked at gate 22, type:
$nmap -ss github.com -p 22
to see the following:
$nmap -sS github.com -p 22
Starting Nmap 5.35DC1 ( http://nmap.org ) at 2011-11-05 10:53 CET
Nmap scan report for github.com (207.97.227.239)
Host is up (0.10s latency).
PORT STATE SERVICE
22/tcp ***filtered*** ssh
Nmap done: 1 IP address (1 host up) scanned in 2.63 seconds
As you can see the state is like Filtered, which means something is blocking this. You can solve this by changing the SSH to port 443, it is also important to switch from github.com to "ssh.github.com" so you will be reporting to the webserver instead of the ssh server. follows below the steps to solve:
Solution:
(First of all make sure you generated your Keys as explained in http://help.github.com/win-set-up-git/)
create the file
~/.ssh/config
(the ssh config file is located in the user directory. On Windows it will probably be in C: Users USERNAME.ssh config
Paste the following code into the created file:
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
Save the file.
Run the ssh:
$ssh -T github.com $Enter passphrase for key '..........
Note that you do not need to highlight the username or the port number.
Browser other questions tagged git github versioning
You are not signed in. Login or sign up in order to post.
this link worked for me... test
$ git clone http://github.com/Luitame/museu_virtual.git
– Sergio
Now it worked for me that way too
HTTP
. But why didn’t it work forSSH
? There must be some configuration error or the company firewall blocking it. Agree @Sergio ?– Luitame
The link that Sergio passed is read-only, so it works, to copy via ssh you need to generate public and private keys. Here, has a tutorial that can help you
– Rodrigo Siqueira
@Luitame I think it is the firewall that is causing problems here.
– Sergio