为了账号安全,请及时绑定邮箱和手机立即绑定

Git SSH错误:“连接到主机:错误的文件号”

Git SSH错误:“连接到主机:错误的文件号”

Git
MYYA 2019-09-19 15:33:09
我按照git指南但在尝试连接到github时遇到了这个奇怪的问题:$ ssh -v git@github.comOpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007debug1: Reading configuration data /c/Documents and Settings/mugues/.ssh/configdebug1: Applying options for github.comdebug1: Connecting to github.com [207.97.227.239] port 22.debug1: connect to address 207.97.227.239 port 22: Attempt to connect timed out without establishing a connectionssh: connect to host github.com port 22: Bad file number这是我在.ssh下的配置文件Host github.com    User git    Hostname github.com    PreferredAuthentications publickey    IdentityFile "C:\Documents and Settings\mugues\.ssh\id_rsa"    TCPKeepAlive yes    IdentitiesOnly yes任何想法?
查看完整描述

3 回答

?
长风秋雁

TA贡献1757条经验 获得超7个赞

我发现,当你的连接很差时会发生这种情况。几分钟前,当我推送到我的仓库时,它已经有了它,它一直在失败,一段时间后,连接断开了。


在它恢复后,推动立即通过。


我相信这可能是由于你身边或他们的连接断开造成的。


查看完整回答
反对 回复 2019-09-19
  • 3 回答
  • 0 关注
  • 792 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信