I use Chilkat SSH to start a remote shell by calling ssh.SendReqShell and then run a command by calling ssh.ChannelSendString. I call ChannelReadAndPoll to receive the output, but the 2 seesions return different outputs. why?Am I missing something?Please see the pic at the url: https://imgur.com/a/Sttg3

// Some SSH servers require a pseudo-terminal// If so, include the call to SendReqPty. If not, then// comment out the call to SendReqPty.// Note: The 2nd argument of SendReqPty is the terminal type,// which should be something like "xterm", "vt100", "dumb", etc.// A "dumb" terminal is one that cannot process escape sequences.// Smart terminals, such as "xterm", "vt100", etc. process// escape sequences. If you select a type of smart terminal,// your application will receive these escape sequences// included in the command's output. Use "dumb" if you do not// want to receive escape sequences. (Assuming your SSH// server recognizes "dumb" as a standard dumb terminal.) // Use 0 for pixWidth and pixHeight when the dimensions// are set in number-of-chars.

//last cmd if (cmdlist.Last() == myStringList) { // Send an EOF. This tells the server that no more data will // be sent on this channel. The channel remains open, and // the SSH client may still receive output on this channel. success = ssh_router.ChannelSendEof(channelNum_router); if (success != true) { Console.WriteLine(ssh_router.LastErrorText); Console.ReadKey(); return; } Console.WriteLine("sendEOF"); }