I want to connect my laptop and another machine together using synergy.
They are both on different networks, but I have successfully made a connection from my laptop to the desktop using an SSH tunnel through a publicly accessible machine on the desktop's network (Laptop -> Middle Machine -> Desktop). However, I would like to have the connection the other way round, Desktop -> Laptop. There is not a publicly accessible machine on my laptops network.
Can I run a command on my laptop which connects to the middle machine which opens a port tunnelling back to my laptop? My laptop is running Ubuntu, the other two machines are running CentOS.
Thank you