我按照git指南但在嘗試連接到github時(shí)遇到了這個(gè)奇怪的問(wèn)題:$ 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 回答

長(zhǎng)風(fēng)秋雁
TA貢獻(xiàn)1757條經(jīng)驗(yàn) 獲得超7個(gè)贊
我發(fā)現(xiàn),當(dāng)你的連接很差時(shí)會(huì)發(fā)生這種情況。幾分鐘前,當(dāng)我推送到我的倉(cāng)庫(kù)時(shí),它已經(jīng)有了它,它一直在失敗,一段時(shí)間后,連接斷開(kāi)了。
在它恢復(fù)后,推動(dòng)立即通過(guò)。
我相信這可能是由于你身邊或他們的連接斷開(kāi)造成的。
- 3 回答
- 0 關(guān)注
- 868 瀏覽
添加回答
舉報(bào)
0/150
提交
取消