How to run synergy securely
Posted by ark, ,
I run Synergy to connect my linux desktop to my PowerBook. This allows you to share one keyboard/mouse with another machine. When your pointer moves to the edge of the screen its control moves over to the other machine, your keyboard gets sent to whatever machine the pointer is on. It's AWESOME.

Out the box your passwords if you type them are sent in plaintext, this is unacceptable.

My keyboard it connected to my linux machine which is where I run the synergy server.

on my Linux machine (the server) I start synergy with this (I have it mapped to a menu item in my window manager).
  killall synergys;
synergys -a localhost:24777 --config $HOME/lib/X/synergy/synergy.conf &
synergy.conf looks like this

section: screens
section: links
left = laptop
right =
Now on my mac I do this (I have it in a shell script called synergy)...
  killall synergyc
ssh -x -q -N -L24777:localhost:24777 &
sleep 3;
/usr/local/synergy/synergyc -n laptop localhost:24777 &
Now all synergy communication is on the linux server and the laptop just talks to a local port which is an SSH secure tunnel to the linux machine. Works great!

I haven't quite got this to work between two mac machines yet...