git clone错误

时间:2012-04-13 16:58:37

标签: git ssh

我正在尝试运行命令“git clone xxx.git”并显示错误:

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

发生了什么事?我可以做些什么样的测试来找出问题所在?

2 个答案:

答案 0 :(得分:2)

如果您正在工作,代理服务器可能会出错(即您没有正确设置)。

请参阅:

git SSH problem bad file number

Another SSH problem bad file number post

答案 1 :(得分:0)

我的问题的解决方案是在CONFIG文件夹中创建文件。 ssh包含以下内容:

Host codebasehq.com
    User git
    Hostname ssh.codebasehq.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa
    Port 443
相关问题