Home » Development » “Session is down” errors during concurrent connections with SharpSSH

“Session is down” errors during concurrent connections with SharpSSH

I had been struggling with “Session is down” errors during multiprocessing on my .NET project. The library I had been using was SharpSSH.

It is a known issue about SharpSSH. This library is no longer being updated. In order to get rid of this tedious error, I suggest you using another SSH librarry such as SSH.NET

It is easy to use. An example:

SshClient sshobject = new SshClient(OSShostIP, OSSusername, OSSpassword);
sshobject.Connect();
sshobject.RunCommand("mkdir /home/nedim");
sshobject.Disconnect();

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

Leave a Comment