openssh code

Damien Miller djm at mindrot.org
Sat Apr 24 10:35:42 EST 2004


prasadnn wrote:
> Hi,
>     How do the communication between sshd and program happens when compat20
> is enabled? There are two function process_buffered_input_packets and
> process_input,

process_input takes input from the network and queues it using
packet_process_incoming().

For SSH protocol 1, it also reads the stderr and stdout data - SSH1 only
allows a single shell/program/subsys session, whereas SSH2 allows
multiple.

For SSH protocol 2, data to/from the client is handled through the
channels code. E.g. channel_after_select() -> channel_handler ->
channel_handle_rfd, this same mechanism is used to write data to/from
the session (and port forwardings).

process_buffered_input_packets just processes any packets from the
network that have been queued.

-d




More information about the openssh-unix-dev mailing list