Pretty straight forward.
How do i tunnel Synergy over ssh?
I need to connect client to server over a ssh tunnel to have a more secure connection.
Pretty straight forward.
How do i tunnel Synergy over ssh?
I need to connect client to server over a ssh tunnel to have a more secure connection.
I know this is a long time ago but it's still appearing in search engines so I thought I'd answer.
Assuming a simple setup of one pc that you are sitting at called "parent", this is the one with the keyboard and mouse. The "child" is the one you want to connect to and it has no keyboard and mouse.
The first step is to run the server on the parent
This will start the server listening on the port 24800 on the parent.
Now we need to connect from the parent to the child, but we then need to send back from the child port 24800 to the port 24800 on the parent.
On the child you will want to run the client and tell it to connect to the localhost or 127.0.0.1
Now on the parent you should be able to scroll your mouse to the right off the parent screen and (appear to) move it to the child screen.
You can make this more permanent by adding an entry in your ~/.ssh/config file
Which would then allow
You can automate the entire thing by creating a script that does a clean start of synergy, then connects to the child in the background without opening a ssh terminal the "-N" option.
On the client you should have a autostart script like $ cat ~/bin/startsynergy.sh #!/bin/bash killall synergy-core sleep 2 synergy-core --client --name child 127.0.0.1 exit 0
Note that on older versions replace synergy-core --server with synergys, and synergy-core --client with synergyc.
One disadvantage of this method is that copy and paste will not work unless you start the client using the keyboard on the child pc.