[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#241119: ssh-keyscan exits upon failure of single acquisition



On Tue, Mar 30, 2004 at 03:46:48PM -0500, Joseph S Hasbani wrote:
> Package: ssh
> Version: 1:3.6.1p2-10
> Severity: normal
> 
> I am using ssh-keyscan to acquire the host keys for a large number of
> hosts.  This program is supposed to speed up the process by running many
> ssh connections in parallel.  However, if any of the ssh connections
> gets severed, the entire program exits without giving the other
> connections a chance to produce information.  
> 
> Example:
> 
> > ssh-keyscan -t dsa -f <file with many hosts>
>   (lots of results)
>   # <ip> SSH-2.0-OpenSSH_3.6.1p2 Debian 1:3.6.1p2-10
>   Connection closed by <ip>
> 
> This "Connection closed by" error comes from packet.c:884.  It is the
> exact same error that occurs if I try to manually ssh to this ip.  I do
> not know why the ssh connection fails (directly after SSH2_MSG_KEXINIT
> sent), but ssh-keyscan should not exit simply because one of the ssh
> connections fails; it should try to acquire as much information as
> possible.

This sounds rather like bug #228828. Could you either try the OpenSSH
3.9p1 packages from experimental, or, if that's inconvenient, try
applying my patch in that bug? I'd be interested to know whether that
fixes you problem.

Thanks,

-- 
Colin Watson                                       [cjwatson@debian.org]




Reply to: