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();  
            }
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.