0

I'm trying to run the command "git clone xxx.git" and is showing the error:

ssh: connect to host port codebasehq.com 22: bad file number

What is happening? What kind of testing can I do to find out what the problem is?

Guilherme Costa
  • 1,249
  • 2
  • 12
  • 13

2 Answers2

2

If you're at work, it's likely an error with your proxy (i.e. you don't have it setup correctly).

See:

git SSH problem bad file number
and
Another SSH problem bad file number post

Community
  • 1
  • 1
wadesworld
  • 13,535
  • 14
  • 60
  • 93
0

the solution of my problem was create the file in the CONFIG folder. ssh with the following contents:

Host codebasehq.com
    User git
    Hostname ssh.codebasehq.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa
    Port 443
Guilherme Costa
  • 1,249
  • 2
  • 12
  • 13