title: how display the output from the shellStream
body: <p>I have developer a web application in asp.net .I use ssh.net to establish a connection between my application and the Cisco devices.
  i use the below code:</p>
  
  <ol>
  <li><p>to connect</p>
  
  <pre><code>    var ip = DropDownList2.SelectedItem.Text;
      var user = txtuser.Text;
      var passw = txtpass.Text;
      var connInfo = new Renci.SshNet.PasswordConnectionInfo(ip, 22, user, passw);
      var sshClient = new Renci.SshNet.SshClient(connInfo);
      try
      {
          sshClient.Connect();
  </code></pre></li>
  <li><p>to run command i use 2 way:</p>
  
  <p>2.1.</p>
  
  <pre><code>        var cmd = sshClient.RunCommand("show user");
  
          Label1.Text = cmd.Result;
  </code></pre>
  
  <p>its work fine withe router and switch but not working with firewall
  for that i try to use <strong>shellStream</strong> :</p>
  
  <p>2.2.</p>
  
  <pre><code>         var ss = this.shellStream;
           sshClient.Connect();
           this.shellStream = sshClient.CreateShellStream("dumb", 80, 24, 800, 600, 1024);
  
           Console.WriteLine(SendCommand("enable", ss));
  
           Console.WriteLine(SendCommand(passw, ss));
  
           Console.WriteLine(SendCommand("show looging", ss));
  </code></pre></li>
  </ol>
  
  <p>i can send multiple command to divice but my probbleme is how to display the result of this command from the shellStream.
  i try some thing like that but is not working</p>
  
  <pre><code>string reslt = Console.ReadLine();
  Label1.Text = Reslt;
  </code></pre>
  
  <p>i try to mixed this 2 way like this</p>
  
  <pre><code>this.shellStream = sshClient.CreateShellStream("dumb", 80, 24, 800, 600, 1024);
  
  Console.WriteLine(SendCommand("enable", ss));
  
  Console.WriteLine(SendCommand(passw, ss));
  
  Renci.SshNet.SshCommand cmd;
  
  cmd = sshClient.RunCommand("show logging");
  
  txtenablepass.Text = cmd.Result;
  </code></pre>
  
  <p>but is not working and i have this Exception</p>
  
  <blockquote>
    <p><strong>Additional information: Failed to open a channel after 10 attempts.</strong></p>
  </blockquote>
  
  <p>my question is how display the output from the shellStream ?</p>