{"action":"closed","issue":{"url":"https://api.github.com/repos/ronf/asyncssh/issues/14","labels_url":"https://api.github.com/repos/ronf/asyncssh/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ronf/asyncssh/issues/14/comments","events_url":"https://api.github.com/repos/ronf/asyncssh/issues/14/events","html_url":"https://github.com/ronf/asyncssh/issues/14","id":80218320,"number":14,"title":"apparently a bug in asyncssh/asyncssh/known_hosts.py","user":{"login":"evilkost","id":127723,"avatar_url":"https://avatars.githubusercontent.com/u/127723?v=3","gravatar_id":"","url":"https://api.github.com/users/evilkost","html_url":"https://github.com/evilkost","followers_url":"https://api.github.com/users/evilkost/followers","following_url":"https://api.github.com/users/evilkost/following{/other_user}","gists_url":"https://api.github.com/users/evilkost/gists{/gist_id}","starred_url":"https://api.github.com/users/evilkost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilkost/subscriptions","organizations_url":"https://api.github.com/users/evilkost/orgs","repos_url":"https://api.github.com/users/evilkost/repos","events_url":"https://api.github.com/users/evilkost/events{/privacy}","received_events_url":"https://api.github.com/users/evilkost/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ronf/asyncssh/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"ronf","id":1901085,"avatar_url":"https://avatars.githubusercontent.com/u/1901085?v=3","gravatar_id":"","url":"https://api.github.com/users/ronf","html_url":"https://github.com/ronf","followers_url":"https://api.github.com/users/ronf/followers","following_url":"https://api.github.com/users/ronf/following{/other_user}","gists_url":"https://api.github.com/users/ronf/gists{/gist_id}","starred_url":"https://api.github.com/users/ronf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronf/subscriptions","organizations_url":"https://api.github.com/users/ronf/orgs","repos_url":"https://api.github.com/users/ronf/repos","events_url":"https://api.github.com/users/ronf/events{/privacy}","received_events_url":"https://api.github.com/users/ronf/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-24T17:29:45Z","updated_at":"2015-05-25T17:47:44Z","closed_at":"2015-05-25T17:47:44Z","body":"Hi, I'm quite interested in your project, but unfortunately I've failed to run even simplest example with the following error: \r\n```\r\nException in callback SSHConnection.connection_made(<_SelectorSoc...e, bufsize=0>>)\r\nhandle: <Handle SSHConnection.connection_made(<_SelectorSoc...e, bufsize=0>>)>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/asyncio/events.py\", line 120, in _run\r\n    self._callback(*self._args)\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/connection.py\", line 334, in connection_made\r\n    self._connection_made()\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/connection.py\", line 1505, in _connection_made\r\n    self._peer_addr, self._port)\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/known_hosts.py\", line 142, in match_known_hosts\r\n    host_keys, ca_keys, revoked_keys = _match_entries(entries, host, addr, port)\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/known_hosts.py\", line 113, in _match_entries\r\n    if entry.matches(host, addr, ip):\r\nTypeError: matches() takes 3 positional arguments but 4 were given\r\nException in callback _SelectorSocketTransport._read_ready()\r\nhandle: <Handle _SelectorSocketTransport._read_ready()>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/asyncio/events.py\", line 120, in _run\r\n    self._callback(*self._args)\r\n  File \"/usr/lib/python3.4/asyncio/selector_events.py\", line 669, in _read_ready\r\n    self._protocol.data_received(data)\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/connection.py\", line 349, in data_received\r\n    while self._inpbuf and self._recv_handler():\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/connection.py\", line 430, in _recv_version\r\n    self._send_kexinit()\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/connection.py\", line 642, in _send_kexinit\r\n    host_key_algs = NameList(self._get_server_host_key_algs())\r\n  File \"/home/kost/.virtualenvs/copr-py3/lib/python3.4/site-packages/asyncssh/connection.py\", line 1550, in _get_server_host_key_algs\r\n    return self._server_host_key_algs\r\nAttributeError: 'SSHClientConnection' object has no attribute '_server_host_key_algs'\r\n```\r\nIt looks like that problem is here: https://github.com/ronf/asyncssh/blob/master/asyncssh/known_hosts.py#L31 and  #L56:\r\nPlainHost: def matches(self, host, addr, ip)\r\nHashedHost: def  matches(self, host, addr)\r\nAnd  line https://github.com/ronf/asyncssh/blob/master/asyncssh/known_hosts.py#L113\r\ncauses TypeError"}}