TerminalException thrown when sending multiple commands via SSH

0 votes
asked Nov 12, 2010 by Jenn (120 points)
edited Mar 21, 2011

When sending multiple commands to an SSH shell I get a TerminalException with the message "Unable to process command." However, the command is sent and executes successfully.

There is no unusual traffic in the Rebex debug log, just packets coming and going.

I can't find any information regarding why this exception may be thrown or what to do about it. Has anybody encountered this?

commented Nov 12, 2010 by Jenn (120 points)
I should add that the first command goes through without exception, commands after the first throw the TerminalException.

1 Answer

0 votes
answered Nov 15, 2010 by Lukas Matyska (60,650 points)
edited Nov 15, 2010

Can you provide us with more information please?

  • which ShellMode are you using (WellKnownShell or Prompt)? ssh.StartShell(ShellMode.XXXXX)
  • in case of ShellMode.Prompt what you assign to the Prompt property? shell.Prompt = "XXX"
  • can you send us whole communication log (with LogLevel.Verbose) to support@rebex.net please? How to do it is described at this post