0 votes
by (120 points)


We are interested in the File Transfer Pack: SFTP, FTP and FTP/SSL for .NET for a C# project.

We only plan on using the FTP and SFTP parts.

I'm looking to do a logged session, so I can see the handshake process and understand if there is a problem of communication or otherwise.

Is there a loggin/debug/method/mode that can provide the info of the connection?

The key problem we are having is to utilize SFTP connection.

I don't have a mean to know if there is a response from the server, if the problem is a user/pass, perhaps I'm sending it to the wrong port.

Please let me know how to do a trace/debug/log/method to a file the chat with the FTP/SFTP server.



Applies to: Rebex SFTP

1 Answer

0 votes
by (58.9k points)


there is the LogWriter property (available on both Ftp and Sftp classes):

Sftp client = new Sftp();
client.LogWriter = new Rebex.FileLogWriter(@"c:\temp\sftp-log.txt", Rebex.LogLevel.Debug);

More info can be found in this knowledge base article.