Bug 126 - ssh-keyscan hangs or crashes accessing Sun ssh host
Summary: ssh-keyscan hangs or crashes accessing Sun ssh host
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: -current
Hardware: ix86 Linux
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-28 03:25 AEDT by Jeremy Sanders
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Sanders 2002-02-28 03:25:56 AEDT
When trying to do a keyscan on a machine running Sun's ssh daemon, the
ssh-keyscan hangs indefinitely.

For example:

xpc1:~/code> ./ssh-keyscan cass37.ast.cam.ac.uk
# cass37.ast.cam.ac.uk SSH-2.0-Sun_SSH_1.0
[... hangs here consuming most of the cpu ...]

strace shows something like this repeated:

read(3, "", 1349676892)                 = 0
gettimeofday({1014826290, 123906}, NULL) = 0
gettimeofday({1014826290, 125461}, NULL) = 0

With a long file of hosts including a sun ssh one the keyscan can crash with an
error in xmalloc attempting to allocate too much memory.

xmalloc: out of memory (allocating 1349676920 bytes)
Comment 1 Darren J Moffat 2002-02-28 04:17:41 AEDT
I can't reproduce this with the ssh-keyscan from OpenSSH 3.0p1 and the
latest sshd in Solaris.  Can you add debug output from the Solaris machine.

It is possible that this was a bug in the Solaris shipped sshd that has been
fixed since Beta Refresh.

Or it might be a bug in -current which I haven't checked yet.
Comment 2 Jeremy Sanders 2002-02-28 04:46:51 AEDT
Sorry - wrong version number for OpenSSH. I've corrected it. I haven't got
access to the ssh server which breaks it, but I might try to ask one of the
sysadmins nicely!


Comment 3 Kevin Steves 2002-03-31 05:37:07 AEST
can someone help to dup and debug this?
Comment 4 Ben Lindstrom 2002-07-31 06:45:46 AEST
4 months with no one recreating it.  Reopen if still a problem
Comment 5 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED