I have a package that uses two connection managers. One requires that an SSH tunnel is opened via Cygwin.
I currently have an execute process task that opens a cmd window and gives it the argument to open the ssh tunnel which it does successfully. The problem I am having is that I cannot get it to see the connection manager, once the SSH tunnel task is executed,
is able to connect successfully.
When I run the cmd to open the SSH tunnel manually then manually test the connection manager via right-click--> edit on the connection manager it succeeds in the test. I cannot, however, get it to do this within the flow itself without me manually doing
something before hand.
Things I've tried:
Tried using a Script Task to acquire the connection (using C#) This returns an error of unable to
establish connection.
Set 'Delay Validation' to True on the connection manager as well as the tasks that use this
connection manager.
Trying to figure out how to use a Script Task to add a new connection and acquire it in C# to the
already existing package. I have yet to have any positive findings from my internet searches.
What I am trying to do in the package:
1. Establish the ssh tunnel using Cygwin (works)
2. Connect to database using a connection manager that uses this newly created tunnel
(does not work)
Any help would be much appreciated.