Synergy Proxy using only SSH

March 11th, 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

      PuttyLocalTunnel

    2. or simply ssh -L24800:localhost:24800 <proxy server address goes here>
  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

      PuttyRemoteTunnel

    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.

Advanced Text Search and Replace using Python

January 8th, 2013

The last post was just a short introduction to using Python aimed at Bioinfomaticians. In this post we are going to cover one of the most useful topics dealing with any text processing. Perl’s the “goto” scripting language for this, but frankly, I hate Perl because of its very unreadable syntax. Python supports all of the nifty features of extended regular expressions too so lets give it a go.

Read the full post…

Introduction to Python

January 5th, 2013

Who this is for

Anybody that is brand new or just beginning into the world of Bioinformatics and wants to remove those super tedious things you do over and over or maybe just somebody new to Python.

Why should you care about Python, you are a biologist?

Since the start of Next Generation Sequencing, biology has entered the realm of big data science. That is, huge files of data are being generated to study biology. Think of the problem like this, huge files filled with lines of text that need to be processed into something useful that tells you something. This either requires you to manually open the file and sift through the files looking for things(and probably making mistakes) or you can spend up font time and write a small python script to do it for you.

Spend X amount of time now to save X*Y amount of time later.

Read the full post…

Orders and Tracking information in your Email

December 8th, 2012

For a while I have had a filter set up in Gmail that automatically labels anything that is related to an order or tracking. I felt like this may be something useful for others so here it is

Read the full post…

New York

November 10th, 2012

After the wedding Mel and I took a trip to New York City for a long weekend.

It has been a while since our trip so I’m just going to be boring and post the pictures instead of talking about the trip

Here are the pictures I played with in Lightroom

New York City Downtown Skyline

Skyline of downtown NYC

Melanie in front of the building they shot for the opening scene of her favorite TV series Friends

Manhattan skyline from Liberty Island

Statue of Liberty

Melanie with NYC Skyline in background. Taken from Rockefeller Tower(Top of the Rock)

Picasa link to the rest of the photos

New York Blog