raj raj

raj raj

  • 2.1k
  • 20
  • 540

unable to connect through ssh I am trying to use ssh in c# but getti

Sep 28 2022 10:50 AM

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();
                }