Your message dated Thu, 05 Jul 2012 15:49:19 +0000
with message-id <e1smoix-0000ay...@franck.debian.org>
and subject line Bug#668239: fixed in paramiko 1.7.7.1-2.1
has caused the Debian Bug report #668239,
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.)
--
668239: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668239
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-2.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:
paramiko_1.7.7.1-2.1.debian.tar.gz
to main/p/paramiko/paramiko_1.7.7.1-2.1.debian.tar.gz
paramiko_1.7.7.1-2.1.dsc
to main/p/paramiko/paramiko_1.7.7.1-2.1.dsc
python-paramiko_1.7.7.1-2.1_all.deb
to main/p/paramiko/python-paramiko_1.7.7.1-2.1_all.deb
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 668...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Luk Claes <l...@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: SHA1
Format: 1.8
Date: Thu, 05 Jul 2012 00:38:56 +0000
Source: paramiko
Binary: python-paramiko
Architecture: source all
Version: 1.7.7.1-2.1
Distribution: unstable
Urgency: low
Maintainer: Jeremy T. Bouse <jbo...@debian.org>
Changed-By: Luk Claes <l...@debian.org>
Description:
python-paramiko - Make ssh v2 connections with Python
Closes: 668239
Changes:
paramiko (1.7.7.1-2.1) unstable; urgency=low
.
* Non-maintainer upload.
* Fix broken host key handling when port != 22 (Closes: 668239)
Checksums-Sha1:
4e736544bd4cd8b83cbba0197698356e5f2ef32e 1339 paramiko_1.7.7.1-2.1.dsc
e4aa8c588c5e6f9de3dd85d8147acc2741e13b95 4111
paramiko_1.7.7.1-2.1.debian.tar.gz
ab112e2faf6913b199bb522e527ac653f5b74ec1 799756
python-paramiko_1.7.7.1-2.1_all.deb
Checksums-Sha256:
1f8b76091659144927e6dcbdd87804a2863fe7582aa835ac558f138cdaeaaa12 1339
paramiko_1.7.7.1-2.1.dsc
f397897c5755a1ec8dc7264b17eec8f8878bf32dd1502189a728e2f4d77301a7 4111
paramiko_1.7.7.1-2.1.debian.tar.gz
71375f3c11bd518dc21a5636504fb6fe9aecd62a5913480f5ab8a6816a075154 799756
python-paramiko_1.7.7.1-2.1_all.deb
Files:
c0e386a81509e350b60e3c8de45fcbca 1339 python optional paramiko_1.7.7.1-2.1.dsc
03ba3e5a9c7ce0ff715b33f76160b88f 4111 python optional
paramiko_1.7.7.1-2.1.debian.tar.gz
40e568bec76121b3f78712a7501954e8 799756 python optional
python-paramiko_1.7.7.1-2.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk/1tCsACgkQ+C5cwEsrK55F9QCeIl+PIIv7CFwIInynNdGA+Vxc
SUMAoISzZJkHTgHjeokQ423dFuzdzLgU
=QcXV
-----END PGP SIGNATURE-----
--- End Message ---