Hello,
using an SSIS script task with Rebex.Net.Sftp I need to follow the steps described below:
1- Connect to a shared folder with specific credentials to access a file (pending)
2- Sftp the file out with Rebex.Net.Sftp (accomplished)
How can I stablish a connection passing specific credentials to access a shared folder on an external server to access the file that I need to transport to the ftp folder?
I am assuming that
client.Upload(@"\\Shared_folder_path\File.txt","ftp_folder")
will not work because in order to connect to \\Shared_folder_path
I have to pass specific credentials.
Is there a way I can pass the credentials to access \\Shared_folder_path\File.txt
before I call client.Upload
?