unable to connect through ssh I am trying to use ssh in c# but getting below error.

N 1 Reputation point
2022-09-29T09:52:56.533+00:00

I am trying to use ssh in c# but getting below error.

No connection could be made because the target machine actively refused it.
using (var client = new SshClient("hostname", "userid", "pwd"))
{
client.Connect();

                client.Disconnect();  
            }
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,474 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,412 questions
{count} votes