I have made an application, which connects to the device using SSH connection as we do using PUTTY software. In my application I have used Tamir.sharpSsh C# library.It gives an exception at making SSH connection. I don't know that either it is a problem of library or device response or something else.
Below is the code.
using Tamir.SharpSsh;
var obj = new SshStream(ip, username, password); // exception here
obj.Write("ls -a");
string rS = obj.ReadResponse();
richTextBox.Text = rS;
Here is the Exception
Exception : System.IO.IOException
at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
at Tamir.SharpSsh.jsch.Session.connect()
at Tamir.SharpSsh.SshStream..ctor(String host, String username, String password)
I can also provide the Wireshark data if needed.