User-73514677 posted
Hi,
I am using a web application and want to connect to a remote server. I have tried the below:
using (SshClient ssh = new SshClient("server name", port, "username", "pwd"))
{
ssh.Connect();
var result = ssh.RunCommand("df -h");
ssh.Disconnect();
}
I am getting error as - No connection could be made because the target machine actively refused it server:port
Is there any other way to connect to remote server from a web application ?
Thanks