Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: "An established connection was aborted by the software in your host machine." after establishing a SSH connection to a juniper firewall

$
0
0
I unfortunately don't have any specification, I even think that there won't be sent any information about the server during the connection establishment. I solved it by commiting type-specific commands and requested the answers that I get from the device.

e.g.
bool flag = false;
writer.WriteLine("root"); 

while (stream.Length == 0)
{
    Thread.Sleep(500);
}
line = reader.ReadLine();
while (line != null)
{
    if (line.Contains("unknown keyword"))
    {
        flag = true;
        break;
    }
    textBox1.Text += "\r\n" + line;
    line = reader.ReadLine();
}

if (flag == true)
{
    textBox1.Text += "\r\nThis device is a SSG-30M\r\n";
}
else
{
    textBox1.Text += "\r\nThis is another device\r\n";
}

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>