{"action":"closed","issue":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/802","repository_url":"https://api.github.com/repos/paramiko/paramiko","labels_url":"https://api.github.com/repos/paramiko/paramiko/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/paramiko/paramiko/issues/802/comments","events_url":"https://api.github.com/repos/paramiko/paramiko/issues/802/events","html_url":"https://github.com/paramiko/paramiko/issues/802","id":172905553,"number":802,"title":"AttributeError: 'module' object has no attribute 'c_ssize_t'","user":{"login":"X286","id":15614936,"avatar_url":"https://avatars.githubusercontent.com/u/15614936?v=3","gravatar_id":"","url":"https://api.github.com/users/X286","html_url":"https://github.com/X286","followers_url":"https://api.github.com/users/X286/followers","following_url":"https://api.github.com/users/X286/following{/other_user}","gists_url":"https://api.github.com/users/X286/gists{/gist_id}","starred_url":"https://api.github.com/users/X286/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/X286/subscriptions","organizations_url":"https://api.github.com/users/X286/orgs","repos_url":"https://api.github.com/users/X286/repos","events_url":"https://api.github.com/users/X286/events{/privacy}","received_events_url":"https://api.github.com/users/X286/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-24T09:28:32Z","updated_at":"2016-08-25T23:03:14Z","closed_at":"2016-08-25T23:03:14Z","body":"import paramiko\r\n\r\nip=<host>\r\nport=22\r\nusername='username'\r\npassword='passw'\r\n\r\ncmd='dir'\r\n\r\nssh=paramiko.SSHClient()\r\n\r\nssh.set_missing_host_key_policy(paramiko.WarningPolicy())\r\nssh.connect(ip,port, username,password, look_for_keys=False)\r\n\r\nstdin,stdout,stderr=ssh.exec_command(cmd)\r\noutlines=stdout.readlines()\r\nresp=''.join(outlines)\r\nprint(resp)\r\n\r\ngives me error:\r\nC:\\Python27\\lib\\site-packages\\paramiko\\client.py:664: UserWarning: Unknown ssh-rsa host key for <host>: <key>\r\n  (key.get_name(), hostname, hexlify(key.get_fingerprint())))\r\nTraceback (most recent call last):\r\n  File \"sshclient.py\", line 13, in <module>\r\n    ssh.connect(ip,port, username,password)\r\n  File \"C:\\Python27\\lib\\site-packages\\paramiko\\client.py\", line 380, in connect\r\n    look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)\r\n  File \"C:\\Python27\\lib\\site-packages\\paramiko\\client.py\", line 536, in _auth\r\n    self._agent = Agent()\r\n  File \"C:\\Python27\\lib\\site-packages\\paramiko\\agent.py\", line 355, in __init__\r\n    from . import win_pageant\r\n  File \"C:\\Python27\\lib\\site-packages\\paramiko\\win_pageant.py\", line 36, in <module>\r\n    from . import _winapi\r\n  File \"C:\\Python27\\lib\\site-packages\\paramiko\\_winapi.py\", line 92, in <module>\r\n    GlobalAlloc.argtypes = ctypes.wintypes.UINT, ctypes.c_ssize_t\r\nAttributeError: 'module' object has no attribute 'c_ssize_t'\r\n\r\nOS: Win7"}}
{"actor":{"display_login":"bitprophet"}}