SASoft Inc. Forums  
     

Left Nav Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   SASoft Inc. Forums » SASoft General Forums » SASoft Product FAQ's

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-15-2007, 02:02 AM
michael_s michael_s is offline
Administrator
 
Join Date: Jun 2007
Location: Phoenix, AZ
Posts: 94
Cool How To create a secure ssh tunnel with xShop and PuTTY

Connecting remotely to your database via SSH tunnel using puTTY

This is a tutorial for those of you that have SSH access to your hosting account, but do not have remote mysql access to your database.

This is also a way to encrypt and secure all data transactions between your database and xShop.

I will be using the free SSH client PuTTY in this tutorial, which you can download from HERE

Step 1

Download and install PuTTY


Step 2

Create a new SSH profile connection using the SSH connection information provided to you by your host.


Step 3
After you have added the basic connection info, save it, and then go to the Connection >> SSH >> Tunneling section and add the following port forwarding information:

Source Port: 3306
Destination: localhost:3306

Next, make sure the Local and Auto radio buttons are selected (below the Destination field)


Step 4

Make sure you save the profile again in PuTTY by going to the Session section and clicking the Save button on that page.


Step 5

Click the Open button at the bottom of the PuTTY configuration page. This will connect to your remote server via SSH and open a tunnel to mysql.


Step 6

Open xShop and create or edit your database connection. Enter in all the relevant database information, and set the host name to: localhost. Save the connection and make sure the checkbox next to it is checked.


Step 7

Connect to your database with xShop by Clicking the File >> Connect option.

If you have correctly entered in all the database login info, xShop will connect to your remote database. You are now the proud owner of an SSH2 encrypted tunnel to your remote database and you can get working.
__________________
Michael Sasek
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:52 AM.


Powered by vBulletin. Copyright ©2008
Copyright © 2007 SASoft Incorporated
 
 

LinkBacks Enabled by vBSEO 3.1.0