Re: SSH Tunnel from Access (General questions)
I can't say for sure, but I'm guessing that you will run into the same problem. The problem is that you need to establish the tunnel out-of-process and you can't do this if you're running the connection from within Access. One solution is to create an application that establishes the connection then opens access, or what we did is a shell to putty.exe passing necessary parameters to startup the ssh tunnel from a startup form.
I have to admit I don't quite understand all this. I am using two separate apps on my client side, one a variation on the weonlydo sample apps for SSHTunnel, that creates the tunnel, and that seems to work. I use the channels.add method as described in the various code samples to create the port-forwarding to the Windows file share, so now the remote machine should be forwarded to my client's machine file-sharing port 139 if I understand correctly. Then I am attempting to actually USE the tunnel in another application that I am writing in VB.NET using ADO.NET. My idea, and it should work according to my understanding, is to open an ADO.NET connection object using a connection string where the path to the database is specified using the path: \127.0.0.2c$pathdbname.mdb. But it always bombs on the open statement ( Disk or network error ) - it is a separate app, therefore a separate thread from the one that created the tunnel; so I don't see why it encounters the thread-blocking problem being talked about.
Question: has anybody, including you guys at weonlydo, done this exact thing - use a tunnel, port-forwarding, file-sharing, and ADO.NET to connect to a remote .mdb - and can point me towards the exact code that will make it work? If so and I can see it work my boss will purchase the product right away!
Thanks
Rich Forman
Cove Hill Group
Complete thread:
- SSH Tunnel from Access - mrfurious, 2006-03-21, 23:33
- Re: SSH Tunnel from Access - wodSupport, 2006-03-22, 12:37
- Re: SSH Tunnel from Access - mrfurious, 2006-03-22, 14:38
- Re: SSH Tunnel from Access - wodSupport, 2006-03-22, 22:47
- Re: SSH Tunnel from Access - mrfurious, 2006-03-23, 00:31
- Re: SSH Tunnel from Access - wodSupport, 2006-03-23, 00:36
- Re: SSH Tunnel from Access - mrfurious, 2006-03-23, 05:09
- Re: SSH Tunnel from Access - wodSupport, 2006-03-23, 12:04
- Re: SSH Tunnel from Access - richforman, 2006-09-29, 00:05
- Re: SSH Tunnel from Access - richforman, 2006-09-29, 00:07
- Re: SSH Tunnel from Access - mrfurious, 2006-09-29, 15:30
- Re: SSH Tunnel from Access - richforman, 2006-09-29, 17:00
- Re: SSH Tunnel from Access - mrfurious, 2006-09-29, 17:09
- Re: SSH Tunnel from Access - wodDrazen, 2006-09-29, 23:58
- Re: SSH Tunnel from Access - Chad, 2006-10-17, 18:27
- Re: SSH Tunnel from Access - wodDrazen, 2006-09-29, 23:58
- Re: SSH Tunnel from Access - mrfurious, 2006-09-29, 17:09
- Re: SSH Tunnel from Access - richforman, 2006-09-29, 17:00
- Re: SSH Tunnel from Access - mrfurious, 2006-09-29, 15:30
- Re: SSH Tunnel from Access - richforman, 2006-09-29, 00:07
- Re: SSH Tunnel from Access - richforman, 2006-09-29, 00:05
- Re: SSH Tunnel from Access - wodSupport, 2006-03-23, 12:04
- Re: SSH Tunnel from Access - mrfurious, 2006-03-23, 05:09
- Re: SSH Tunnel from Access - wodSupport, 2006-03-23, 00:36
- Re: SSH Tunnel from Access - mrfurious, 2006-03-23, 00:31
- Re: SSH Tunnel from Access - wodSupport, 2006-03-22, 22:47
- Re: SSH Tunnel from Access - mrfurious, 2006-03-22, 14:38
- Re: SSH Tunnel from Access - wodSupport, 2006-03-22, 12:37