User283571144 posted
Hi saravanangj,
According to your description, I suggest you could conside using SSH.NET to conenct to the UNIX server, then you could run ssh command to get the file or something else.
Install SSH.NET from Nuget:
https://www.nuget.org/packages/SSH.NET/
More details about how to run shh command on Unix in asp.net, you could refer to below codes:
Article:
https://www.codeproject.com/Articles/11966/sharpSsh-A-Secure-Shell-SSH-library-for-NET
Test Code:
using Renci.SshNet;
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
try
{
using (var client = new SshClient("server ip address", "your user name", "your password"))
{
client.Connect();
Console.WriteLine("Connected");
string result = client.RunCommand("ifconfig -a").Execute();
Console.WriteLine(result);
client.Disconnect();
Console.WriteLine("Disconnected");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
Console.ReadLine();
}
}
}
Result:

Best Regards,
Brando