python paramiko module socket.error, errno 10060

♀尐吖头ヾ 提交于 2019-12-13 04:27:18

问题


It seems the socket connection through paramiko (v1.10.0) is not stable.

I have two computers. The python code is on the PC one. The connection sometime is successful and sometime is not (Same code). When the PC paramiko code fails (socket.error, 10060), I use my Mac via terminal ssh login the server and everything is fine.

I use set_missing_host_key_policy in the code. But the Mac has the key I guess. I typed yes when login at the first time.

If the unstable connection is caused by the hotkey, how do I get the host key? From the server or somewhere in my local folder (win7)?


回答1:


Try switching off Windows firewall. It's a network error, it should not be because of SSH key problems.

Error Code 10060: Connection timeout Background: The gateway could not receive a timely response from the website you are trying to access. This might indicate that the network is congested, or that the website is experiencing technical difficulties.



来源:https://stackoverflow.com/questions/15105183/python-paramiko-module-socket-error-errno-10060

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!