login about faq

I am connecting to an audio signal processor with the SSH component. I am having no problems with connecting (debugged step-by-step) and came out the other side just fine. The problem occurs when I try to send or receive information from the device. I get an "stdin is not a terminal" exception. I'm in C#, the Reference has been added properly, using newest Chilkat software (managed through NuGet - December 2016 version).

Any clues?

Here's my code

Ssh client = new Ssh(); . . Connection/Authentication code follows - tests ok .

          public string GetSerialNumber()
            {
                client.SendReqShell(channelNumber);
                client.ChannelSendString(channelNumber, "DEVICE get serialNumber\r\n","ansi");
                client.ChannelReceiveUntilMatch(channelNumber,"+OK","ansi",false);
                DeviceResponse = client.GetReceivedText(channelNumber, "ansi");
                return DeviceResponse;
            }

Thanks for any help.

asked Feb 28 at 16:34

normschaef's gravatar image

normschaef
31

edited Feb 28 at 17:26


Discovered the DSP in question required a "pseudo-terminal". Added SendReqPty and things working now.

link

answered Mar 04 at 05:36

normschaef's gravatar image

normschaef
31

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×106
×81

Asked: Feb 28 at 16:34

Seen: 334 times

Last updated: Mar 04 at 05:36

powered by OSQA