Re: scp return codes are random
From: Darren Tucker (dtucker_at_zip.com.au)
Date: Mon, 24 Nov 2003 07:50:44 +1100 To: Sam Robertson <email@example.com>
Sam Robertson wrote:
> I'm using openssh-3.7.1p2 on one machine and connecting to a Solaris 9
> system running Sun_SSH_1.0. I'm really not quite sure which version of
> OpenSSH this is or if it's even OpenSSH anymore.
> Anyway, I've tried the following with 3.7p1, 3.5p1, 3.7.1p2 and have
> the same results in all cases.
> So is there something I'm missing or is this a client & server mis-match
> problem? Additionally, I'm not seeing this under Linux, it seems to
> manifest itself only with connecting to the default installed SSH client
> that comes with Solaris 9.
Earlier versions of OpenSSH ( < 3.6) had a bug in sshd that sometimes
caused a coredump in the exit path. This had the result of making the
return code passed back to the client random.
Since SunSSH was based on OpenSSH originally, it's possible it still has
this bug. (You can confirm this by enabling core dumps with coreadm on
the server and checking for dumps from sshd).
Description of the OpenSSH bug here:
-- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.