raj raj

raj raj

  • 1.5k
  • 256
  • 18.3k

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