scp not shutting down in 2.1.1p4

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Tue Jul 18 22:55:44 EST 2000


On Tue, Jul 18, 2000 at 11:24:32AM +0200, Lutz Jaenicke wrote:
> Hi!
> 
> as I just noted, after scp the connection does not shut down properly.
> 
> When I do a "scp file targethost:path", on targethost a "sshd" process is
> left running. I do use
>   --with-default-path="/usr/local/openssh/bin:/usr/bin:/usr/local/bin"
> to assure, that the corrensponding openssh-scp is used.

In the good old habit of following up to myself :-)

I have by now investigated the behaviour a bit more and of course, when
doing a "ps -ef | grep sshd", it seems that the sshd-processes are hanging
around.
Of course, when looking a bit more precise "ps -ef | grep scp", the
corresponding scp-processes are still around on the server, so that the
sshd-processes will not terminate. That brings the problem down to the
problem, why the remote scp processes won't die.
(The are called in sink-mode (-t) and the copying is completed ok.
When used in source mode (scp sourcehost:path localfile), it seems to
work ok.)
The calling "scp" process also does not terminate but seems to go to
background(?) (is still in the process list) because I can continue the work,
but still get the error message (e.g. broken pipe) when I kill the hung
scp process on the targethost.

Hmm, still digging in the scp source...

Best regards,
	Lutz
-- 
Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153





More information about the openssh-unix-dev mailing list