【发布时间】: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 clone xxx.git”并显示错误:
ssh: connect to host port codebasehq.com 22: bad file number
发生了什么?我可以做什么样的测试来找出问题所在?
【问题讨论】:
如果您在工作,可能是您的代理出错(即您没有正确设置它)。
见:
git SSH problem bad file number
和
Another SSH problem bad file number post
【讨论】:
我的问题的解决方案是在 CONFIG 文件夹中创建文件。 ssh 内容如下:
Host codebasehq.com User git Hostname ssh.codebasehq.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa Port 443
【讨论】: