【问题标题】:git clone errorgit克隆错误
【发布时间】:2012-04-13 16:58:36
【问题描述】:

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

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

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

【问题讨论】:

  • windows server 2008 R2 数据中心

标签: git ssh


【解决方案1】:

如果您在工作,可能是您的代理出错(即您没有正确设置它)。

见:

git SSH problem bad file number

Another SSH problem bad file number post

【讨论】:

    【解决方案2】:

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

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

    【讨论】:

      猜你喜欢
      • 2011-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多