Traceback (most recent call last):
File "D:python\SSH.py", line 3, in <module>
ssh.connect('192.168.1.100', port=22, username='test' , password='test')
File "C:\Python27\lib\site-packages\paramiko\client.py", line 310, in connect
retry_on_signal(lambda: sock.connect(addr))
File "C:\Python27\lib\site-packages\paramiko\util.py", line 276, in retry_on_signal
return function()
File "C:\Python27\lib\site-packages\paramiko\client.py", line 310, in <lambda>
retry_on_signal(lambda: sock.connect(addr))
File "C:\Python27\lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Remove the space from ssh connect command
ssh.connect('192.168.1.100', port=22, username='test', password='test')
File "D:python\SSH.py", line 3, in <module>
ssh.connect('192.168.1.100', port=22, username='test' , password='test')
File "C:\Python27\lib\site-packages\paramiko\client.py", line 310, in connect
retry_on_signal(lambda: sock.connect(addr))
File "C:\Python27\lib\site-packages\paramiko\util.py", line 276, in retry_on_signal
return function()
File "C:\Python27\lib\site-packages\paramiko\client.py", line 310, in <lambda>
retry_on_signal(lambda: sock.connect(addr))
File "C:\Python27\lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Remove the space from ssh connect command
ssh.connect('192.168.1.100', port=22, username='test', password='test')
Did you manage to get solution to fix this error?
ReplyDeleteSee the end of the post
ReplyDeleteare you talking about `username='test' ,` space after 'test' and `,`?
ReplyDelete