Using Rebex.sftp, how to connect to a server shared folder with specific credentials, grab a file and sftp it out

0 votes
asked Feb 8 by mirelle (120 points)


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
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?

Applies to: Rebex SFTP, File Server

1 Answer

0 votes
answered Feb 9 by Lukas Pokorny (78,250 points)


This is outside the scope of Rebex SFTP component, but it looks like this might actually be quite simple with a bit of P/Invoke calls. Please check out this for details: