Information on command execution in sshd
Damien Miller
djm at mindrot.org
Tue Oct 4 01:16:24 EST 2011
On Sun, 2 Oct 2011, titu senapati wrote:
> Hi,
>
> I was going through the code of open ssh server part ( code for sshd
> ). My query is when user gives any command ( for example unix command
> "ls") in the console ( after ssh login is complete ), which function
> in sshd will execute this command. I traced that the command is coming
> to sshd code in message type SSH2_MSG_CHANNEL_DATA. There is a check
> using function packet_check_eom(). But I am not able to trace the
> place where linux command "ls" will be executed. I want to know the
> function in sshd code which will execute this function.
What are you trying to do? (this looks a lot like a homework question)
The request is not SSH2_MSG_CHANNEL_DATA but SSH2_MSG_CHANNEL_REQUEST.
-d
More information about the openssh-unix-dev
mailing list