Synergy Proxy using only SSH

11 Mar 2013

I’ve recently had the need to setup a secure synergy proxy so that I could connect two machines that were firewalled from each other.

The process is actually quite simple.

I’m going to omit the configuration side of the synergy server and leave that up to you to figure out as it really doesn’t have too much to do with how this works.

For the purpose of this I’m going to call the synergy client “Client” and the synergy server “Server” just to make sure things are clear.

Also, for my setup my client was a Windows 7 machine and the server was a Linux machine. Should not matter since we are using SSH to do the proxy.

You will need a few things

  • Synergy
  • ssh client
    • Windows
    • Linux/Mac/Unix just use the built in ssh client
  • Synergy server setup accepting connections(For this tutorial, I’m using the default port of 24800)
  • ssh-server setup on the server you will be proxying through with a valid account

Since you will be using a computer in the middle, I’ll just suggest it should be a *nix type computer and not even bother if you are going to use windows :)

The great thing about this is you don’t need any ports open on the client or server other than the ability to establish an ssh connection to the proxy server.

The Setup

  1. On the client establish an ssh Local tunnel on port 24800
    1. Putty Setup for Windows

    2. or simply ssh -L24800:localhost:24800

  2. On the server side do the exact same except you will do a Remote tunnel on the same port
    1. Putty Setup for Windows

    2. ssh -R24800:localhost:24800

You can have synergy client and synergy server running before the ssh tunnel setup since the client attempts to reconnect over and over. Once the ssh tunnel is up and running the client will connect to the server.

«« Previous Post Next Post »»