librelist archives

« back to archive

getting a errno 10061 when attempting to do a ssh from a windows machine to a unix machine.

getting a errno 10061 when attempting to do a ssh from a windows machine to a unix machine.

From:
Dwyer, Chris (kbb)
Date:
2015-09-22 @ 19:49
Hello,

I am getting the following when I attempt to do a connect:

I am just getting started, so it the problem maybe simple.

>>> import paramiko
>>> ssh=paramiko.SSHClient()
>>> ssh.connect('somehost.com',username='someuser',password='secretpw')

Later added:
>>> ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
>>> ssh.load_system_host_keys()
>>> ssh.connect('somehost.com',username='someuser',password='secretpw')

  File "<stdin>", line 1, in <module>
  File "build\bdist.win-amd64\egg\paramiko\client.py", line 251, in connect
  File "build\bdist.win-amd64\egg\paramiko\util.py", line 270, in retry_on_signal
  File "build\bdist.win-amd64\egg\paramiko\client.py", line 251, in <lambda>
  File "C:\Python27\lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 10061] No connection could be made because the target machi
ne actively refused it

Also tried:
>>> tr=paramiko.Transport(('nn.mmm.iii.jj', kk))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win-amd64\egg\paramiko\transport.py", line 224, in __init__
paramiko.ssh_exception.SSHException: Unable to connect to nn.mmm.iii.jj: [Errno
10061] No connection could be made because the target machine actively refused it
>>> print paramiko.__version__
1.15.2
>>>

Another note is that another person install paramiko on a Linux box and 
was able to do a SSH connection to other machines.

I am also able to connect with Putty on 'nn.mmm.iii.jj', kk.

Thanks,

Chris