Using the Secure Shell Server Daemon (sshd2)
The server daemon program for Secure Shell is called sshd2.
Sshd2 is normally started at boot time from
/etc/rc.local or its equivalent. It forks a new
daemon for each incoming connection. The forked daemons handle
key exchange, encryption, authentication, command execution,
and data exchange.
The Secure Shell daemon is normally run as root. If it is not
run as root, only the user the daemon is running as will be
authorized to log in, and password authentication may not work
if the system uses shadow passwords. An alternative host key
pair must also be used.