0 votes
by (120 points)
Applies to: Rebex SFTP

1 Answer

0 votes
by (147k points)

You need to reference Rebex.Common.dll, Rebex.Networking.dll, Rebex.Sftp.dll. And don't forget to add using Rebex; & using Rebex.Net;.

Does the following code work?

using System;
using Rebex;
using Rebex.Net;

namespace Sample
{
    class Program
    {
        static void Main()
        {
            using (var client = new Sftp())
            {
                client.LogWriter = new FileLogWriter("log.txt", LogLevel.Debug);
                client.Connect("test.rebex.net");
                client.Login("demo", "password");
                client.GetRawList();
            }
        }
    }
}
...