Re: [suse-security] Misterious non functions with OpenSSH
Thomas Schweikle schrieb am Mittwoch, den 18. Juli 2001:
if started manually in a shell (user stream, group stream). If started by cron this script will hang while running "ssh -l stream server ls ...". The command "ls" will execute, but ssh won't come back again. The connection is terminated after execution of the command.
OpenSSH on host: openssh-2.9p1-23, SuSE 7.2 OpenSSH on server: openssh-2.9p1-23, SuSE 7.2 OpenSSH on server-extern: openssh-2.3.0p1-5, SuSE 7.0
Any idea, why this happens? Did someone else notice this behavior?
I'm not sure since when (which version) exactly, but I have openssh's ssh occasionally hanging when it's supposed to close the connection. This affects both "send-command" and interactive sessions. I never took the time to investigate this, but I never saw this happen with ssh.com's ssh 1.2.2x. It might be client- related, since it also gives problems when the connection to be terminated has been to a Solaris box where the admin installed OpenSSH 2.5.2p2 (own compile, I believe, I can ask if that matters).
I haven't yet investigated the problem (packet trace alongside with ssh debug output or such).
I had some time to investigate further. ssh executes the given command on the other host, then falling back waiting for local input! Clear - this input never will be made since it's a script started by cron. Making ssh wait forever for input. The ssh-server correctly closes the connection, cause ssh tells him so. Looks realy like a client problem, but I do not have time and knowledge to dig into the sources...
[...]
-- Thomas
participants (1)
-
Thomas Schweikle