Your message dated Tue, 20 Nov 2012 23:47:34 +0000
with message-id <e1taxxs-0001di...@franck.debian.org>
and subject line Bug#682050: fixed in paramiko 1.7.7.1-3.1
has caused the Debian Bug report #682050,
regarding host key handling broken when port!=22
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
682050: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682050
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-paramiko
Version: 1.7.7.1-2
Severity: important
Tags: upstream patch

in lines 307-310 in client.py, the hostname is rewritten
to "[origname]:portnumber" if the port isn't 22.

this serves no useful purpose at all, and it breaks
the lookup for the host key that is attempted on the next few
lines: that now fails as the ssh known hosts format allows 
hostnames or ip addresses, nothing else (and certainly 
not '[hostname]:port'). 
result: you get a "unknown server" exception (unless you enable the
only-warn missing host key policy).

the attached patch removes the problematic hostname rewriting.

regards
az
--- client.py.orig      2012-04-10 11:59:19.892476651 +1000
+++ client.py   2012-04-10 11:59:58.743449158 +1000
@@ -303,11 +303,7 @@
 
         server_key = t.get_remote_server_key()
         keytype = server_key.get_name()
-
-        if port == SSH_PORT:
-            server_hostkey_name = hostname
-        else:
-            server_hostkey_name = "[%s]:%d" % (hostname, port)
+        server_hostkey_name = hostname
         our_server_key = self._system_host_keys.get(server_hostkey_name, 
{}).get(keytype, None)
         if our_server_key is None:
             our_server_key = self._host_keys.get(server_hostkey_name, 
{}).get(keytype, None)

--- End Message ---
--- Begin Message ---
Source: paramiko
Source-Version: 1.7.7.1-3.1

We believe that the bug you reported is fixed in the latest version of
paramiko, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 682...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Gilbert <mgilb...@debian.org> (supplier of updated paramiko package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 12 Nov 2012 23:14:26 +0000
Source: paramiko
Binary: python-paramiko
Architecture: source all
Version: 1.7.7.1-3.1
Distribution: unstable
Urgency: medium
Maintainer: Jeremy T. Bouse <jbo...@debian.org>
Changed-By: Michael Gilbert <mgilb...@debian.org>
Description: 
 python-paramiko - Make ssh v2 connections with Python
Closes: 682050
Changes: 
 paramiko (1.7.7.1-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Drop problematic hostkey.patch (closes: #682050).
Checksums-Sha1: 
 5369ff419c8af15288ed0404db4bcd592f095c45 2653 paramiko_1.7.7.1-3.1.dsc
 69c42ab51d76f9e28bd0211a053e28323f6569bc 5226 
paramiko_1.7.7.1-3.1.debian.tar.gz
 91456272bf03dbd8144856e4c60fca9f1129c4c1 809030 
python-paramiko_1.7.7.1-3.1_all.deb
Checksums-Sha256: 
 4ae8a202fe578a035203997eb2f2de005ed4874a4ac67d4b2a91f2b5e111f50e 2653 
paramiko_1.7.7.1-3.1.dsc
 c3c10d8e49f042db48319749b773e7d80fba70649b03ab63e75d8078344cd189 5226 
paramiko_1.7.7.1-3.1.debian.tar.gz
 b3fd1b326bac48f1b31c63180d79e0476daf29cc0e454d6e4054b8caf56b19ee 809030 
python-paramiko_1.7.7.1-3.1_all.deb
Files: 
 fe2313eba2e42e89cfc4003371143695 2653 python optional paramiko_1.7.7.1-3.1.dsc
 abe52702262cfc9d3b5b05a487487c8c 5226 python optional 
paramiko_1.7.7.1-3.1.debian.tar.gz
 34fbeb61b91584ccd25b6028f2aae144 809030 python optional 
python-paramiko_1.7.7.1-3.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQQcBAEB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