Things You'll Need:
- VMWare Server (free version)
- copSSH, or other SSH Server
- BitVise Tunnelier, or other SSH client
- A spare copy of Windows (2000/XP/2003)
-
Step 1
Login to your VPS. Typically, you will do this through Remote Desktop over the internet. Once logged in, download and install the free copSSH server.
-
Step 2
Open up the firewall on your VPS to allow incoming requests to cpSSH. By default, copSSH listens on port 22. For security reasons, I would strongly recommend changing this port to something else.
-
Step 3
Configure the user you will use to connect to cpSSH. For user authentication, I would recommend using certificates. cpSSH comes with utilities to create a root CA from which you can self-sign certs. If setting up certificate-based authentication is unfamiliar to you, you could still use username-password authentication. It is just a little less secure.
-
Step 4
On the local computer that you will use to connect to the VPS, download and install the free VMWare Server software. Use version 1.0 if stil available as it is more lightweight than version 2.0.
-
Step 5
Create a virtual machine with about 256MB RAM and 8GB of disk space. The virtual network adapter on the VM can either be Bridged or NAT'ed. However, to avoid several potential problems (that I won't descibe here) use a NAT'ed virtual adapter. Install a stripped down copy of Windows (2000/XP/2003 Web) into this VM. Turn off all services, including Workstation, Server, Remote Desktp and NetBIOS over TCP/IP. Basically, you don't want the VM to be listening on any port that you want to tunnel to the VPS. It also helps if you give your VM the same Windows omputer name as your VPS.
-
Step 6
Log in to the VM and download and install BitVise Tunnelier, an SSH client that is available for free for non-business use. In my opinion, this is one the best SSH clients available. Configure the client to connect to the CopSSH server on your VPS.
-
Step 7
Configuring client-to-server forwarding of desired ports through SSH tunnelDetermine the IP address of the VM. By default, this is dynamic and assigned by VMWare's DHCP server, but practically it never changes unless you add additional VMs and/or adapters. Once you have the IP, on the C2S tab of BitVise forward any ports that you want from the VM's IP address to the VPS's IP address. Some excamples:
139 - Windows file sharing,
1433 - SQL Server,
3389 - Remote Desktop -
Step 8
Once C2S forwarding is setup, you can access those ports as though they were exposed on the local VM's virtual adapter. For the examples I provided in the previous step, you don't need to configure S2C forwarding. For more sophisticated setups where you have an application on your local host listening for connections from the VPS, you will also need to configure S2C forwarding.










