RE: sshd does not die when client issues control-C or closes
From: Paul Myers (pmyers_at_spectracomcorp.com)
To: "'Paul Myers'" <email@example.com>, <firstname.lastname@example.org> Date: Fri, 12 Mar 2004 14:16:02 -0500
I have been tesing OpenSSH sshd running under uClinux using Putty, Terraterm
with ssh, and Redhat and found that whenever I close a connection with
control-C my child shells die but the sshd -i daemon keeps running and holds
a PTY. The sshd is launched from inetd as indicated is the default by
If I use the x to close the Putty tool both the sshd -i daemon and the child
processes using 1 PTY keep running.
Has anyone seen this and do you know if there might be a configuration
issue? Also, I set my Client Keep alive parameters to issue 4 requests every
15 seconds. But this does not shutdown the system either.
My configuration is below. Is there something obvious about how sshd should
terminate running under uClinux I don't know? Or have I broken something in
# Use defaults below.
# uClinux settings
# SSHD PID FILE
# Allow sshd to create an unprivileged child process to deal with
# incoming network traffic. Used to prevent privilege escalation
# Choose to allow Password Authentication should Public Key Authentication
# Fail or not be used
# Disable Root Login for security
# Control User access by listing allowed and denied Users
# To add root you must enable PermitRootLogin above.
AllowUsers admin config
# Log Level - Default is INFO
# Select from (QUIET, FATAL, ERROR, INFO, VERBOSE,
# DEBUG/DEBUG1, DEBUG2, DEBUG3)
# Maximum Number of Concurrent Connections
# Or after 1 connection deny subsequent connections up to 2
# with a 99% probablity. Note this is not really needed since
# ioclient application and inability to get pty forbids running and kills
# Used to set timeout for ClientAlive messages and number of retries before
# ending connection.
# HostKey for protocol version 1 and 2
# Note the defaults shown below are different than the usual ones.