简体   繁体   中英

git ssh: conect to host port 22 bad file number; can not pull

I just installed a fresh Windows 7 Home Premium on my PC and wanted to reestablish my conection to a Git server. Therefore I copied my old .shh folder from the old installation into C:\\users\\user.ssh including a id_rsa, id_rsa.pub, known_hosts and a key.ppk. (everything was working with the old system). Afterwards I tryed connecting via Putty and Git Bash both failed. Putty just gave a cryptik "connection timed out" Git Bash returned:

ssh: conncet to host xxx.xx.xx.xx port 22: bad file number fatal: Could not read from remote repository.

Googeling did not return anything really usefull since the port can not be blocked by the server. I can not change to a https conection and need to use ssh. Turning off the windows firewall did also not help.

I hope someone can help me with this, kind regards, mhwh

问题自解决了-我不知道为什么,但是现在一切正常,同时已经安装了Skype和一些Windwos更新,但是我不知道这可能会影响git系统...

I have also encountered such problems. The solution is to start the Windows Update Service:

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM