![]() |
![]() |
|
October 22, 2004How to Securely Connect MS Access to a Remote SQL ServerToday I had an interesting conversation with a contract programmer that had me thinking a bit. I have used an interesting technique for a while now that most people don't know that makes data manipulate on a SQL server quite nice... and secure. For this conversation I am going to talk about bridging MS Access to connect to a mySQL database securely... over SSH. The conversation started on a tangent when I made the comment I don't need to write a web front end to massage some data as I could Access. The obvious question from the programmer (and rightfully so) was 'umm... thats not really secure is it?'. I kind of brushed it off and said ya, but didn't explain myself very well. So I figure why not do that now with a useful blog entry on the subject. :) Although more recent versions of most DBMS are now offering options for connecting over SSL, that hasn't always been the case. And in my case, I'd rather use SSH anyways... I have better control over it as its allowed through the firewall as normal SSH traffic. So how do you do it? How do you get a Windows machine running MS Access to connect up to a Unix/Linux server running mySQL to access data? It's pretty simple actually.
Now what happened? Well, what you did is set the Access database to connect to localhost... which was then forwarded across the SSH tunnel to the remote server, which then also made a localhost connection, which you allowed in the system. Now here is a trick for some people that don't get this working first time. Depending on how you do name resolution, when setting the GRANT perms you may need to set the host as the fully qualified name as the system sees it. ie: hostname.domain Thats it. Now you can securely use all the features in Access to massage the data on mySQL without the data being snooped on the wire. Posted by SilverStr at October 22, 2004 05:53 PM | TrackBack |
![]() ![]()
My 5 Favorite Books
Writing Secure Code
Secure Programming Cookbook Security Engineering Secure Coding Principles & Practice Inside the Security Mind ![]()
My 5 Favorite Papers
Smashing the Stack
Penetration Studies Covert Channel Analysis of Trusted Systems DoD Trusted Computer System Evaluation Criteria NSA Security Recommendation Guides ![]()
Archives
December 2005
November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 ![]() |
|