Take the 2-minute tour ×

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.

share|improve this question
add comment

1 Answer

Tamir.SSH is broken and doesn't work. The only open source SSH library for .Net currently is SSH.Det. You can find it at this link: http://sshnet.codeplex.com/ Have a look at this SO question: Are there any good free .Net network libraries? (FTP, SFTP, SSH, etc.)

share|improve this answer
add comment

Your Answer


