[dput-ng-maint] Bug#843241: dput-ng: The BadHostKeyException message is unhelp

Niels Thykier niels at thykier.net
Sat Nov 5 12:21:00 UTC 2016


On Sat, 05 Nov 2016 13:06:00 +0100 Niels Thykier <niels at thykier.net> wrote:
> Package: dput-ng
> Version: 1.10
> Severity: normal
> 
> Hi,
> 
> [...]
> 
> To make matters even worse, OpenSSH's client works fine (after I
> updated my known_hosts file), but dput-ng keeps failing with the
> message.
> 
> 
> """
> $ ssh ssh.upload.debian.org echo ok
> ok
> $ dput ssh-upload pkg_version_source.changes
> ...
> 
> Logging into host ssh.upload.debian.org as nthykier
> SFTP error uploading to ssh.upload.debian.org: BadHostKeyException(u'ssh.upload.debian.org', <paramiko.rsakey.RSAKey object at 0x7ff7a245ca90>, <paramiko.rsakey.RSAKey object at 0x7ff7a2521850>)
> """
> 
> [...]
> 

A bit of debugging - I suspect the underlying issue is that I used
/etc/ssh/ssh_known_hosts from master.debian.org (as
~/.ssh/known_hosts2).  This file lists "ssh.upload.debian.org" multiple
times (with different IPs and host keys).  OpenSSH copes fine with this,
but paramiko doesn't seem too delighted.

After cleaning up the known_hosts file from ssh.upload.debian.org, I got
to the point where I got a "Accept host key" prompt.  Which is
consistent with #691703.

That said, the error message still could do with some improving.

Thanks,
~Niels



More information about the dput-ng-maint mailing list