Subject: Re: Problem with ssh commands from cron
To: Steven M. Bellovin <smb@research.att.com>
From: Christoph Kaegi <kgc@zhwin.ch>
List: netbsd-users
Date: 11/24/2003 15:42:19
On 24.11-08:58, Steven M. Bellovin wrote:
> >
> Then I don't have any guesses.  You might want to run an sshd on a 
> different port with debugging on, and see what it says.
> 

When run by cron, sshd stops after the following:

-------------------------------------- 8< --------------------------------------
...
debug1: channel 0: output drain -> closed
debug1: Received SIGCHLD.
debug1: session_by_pid: pid 8450
debug1: session_exit_message: session 0 channel 0 pid 8450
debug1: channel request 0: exit-status
debug1: session_exit_message: release channel 0
debug1: session_close: session 0 pid 8450
-------------------------------------- 8< --------------------------------------

when started from the console, it goes on after the above
lines with:
-------------------------------------- 8< --------------------------------------
debug1: session_pty_cleanup: session 0 release /dev/ttyp1
debug1: channel 0: read<=0 rfd 9 len 0
debug1: channel 0: read failed
debug1: channel 0: close_read
debug1: channel 0: input open -> drain
debug1: channel 0: ibuf empty
debug1: channel 0: send eof
debug1: channel 0: input drain -> closed
debug1: channel 0: send close
debug1: channel 0: rcvd close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: server-session, nchannels 1
Connection closed by remote host.
debug1: krb4_cleanup_proc called
debug1: krb5_cleanup_proc called
Closing connection to aaa.bbb.ccc.ddd
-------------------------------------- 8< --------------------------------------

So it seems to be stuck in session_pty_cleanup.


-- 
----------------------------------------------------------------------
Christoph Kaegi                                           kgc@zhwin.ch
----------------------------------------------------------------------