when i use parimiko to establish a shell connection with a unix machine on port 22 the connection is failing with the error ( [Errno 10061] No connection could be made because the target machine actively refused it) But when i use putty i can connect to the same machine with same port and credentials. What could be the reason?
transport = paramiko.Transport((host, port))
2520 2424 2014-01-07 18:45:21,154 ERROR "Exception in Unix VM discovery Function" at line 176 in UnixVMDiscovery Traceback (most recent call last): File "C:\Program Files\UnixHelper.py", line 157, in UnixVMDiscovery sshConn=remoteconnection.Connection(_VM, OS="unix", username=Username, password=Password) File "C:\Program Files\remoteconnection.py", line 1124, in init self._transport = paramiko.Transport((host, port)) File "C:\Program Files\paramiko\transport.py", line 296, in init sock.connect((hostname, port)) File "<string>", line 1, in connect error: [Errno 10061] No connection could be made because the target machine actively refused it