Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

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
another question:

Is it possible to get the name of the firewall during the connection establishment or after a successfull connection? I have to know it to be able to send the correct commands to the correct firewall in my source code.

I tried to implement it as follows:
var line = reader.ReadLine();
while (line != null)
{
    line = reader.ReadLine();
    deviceName = line.Substring(0, line.Length - 3);
     textBox1.Text += "\r\n+++++++DEVICE-NAME+++: " + deviceName + "\r\n";
}
but the problem is that the hostname can be changed when configuring the firewall. So is there any possibility to get the real type of the firewall?
Thanks in advance!

Viewing all articles
Browse latest Browse all 2955

Trending Articles