I want to create a string and send it to a sftp server. The reason is I don't want to create a file for security issues. I have tried some of the file examples with no luck. Any help would be appreciated.
Code I tried: [With this code I get the SshPermissionDeniedException Error]
xpath = "/export/test.txt";
data = "This is a test string to sent";
sftp = new
using (var sr = sftp.OpenRead(data))
exceptionOccured = false;