I choose to use ssh tunneling as the authentication mechanism between them. The first step is to setup passwordless ssh in both directions between the two machines. Then, I copied one of the quick-launch buttons on the GNOME menu bar to the menu bar by control-dragging it and edited the copy to have the following settings:
- Type:
Application
- Name:
x2x
- Command:
ssh OTHER_MACHINE_NAME DISPLAY=:0.0 ssh -X THIS_MACHINE_NAME x2x -from :0 -east&
- Comment:
Control the other display with this mouse and keyboard
-east
command-line switch because my "other" machine sets to the right of "this" machine. So when I move the mouse off of the "this" screen to the east, right, it appears on the "other" screen and vice-versa.UPDATE: If this is run more than once, there will be multiple instances of ssh running on the remote machine. This can happen if the connection is lost for some reason and then reestablished. (Changing the remote machines firewall settings will do this.)
A simple workaround is to
kill
or killall
the ssh session(s) on the remote machine and then rerun this again. Before doing a killall ssh
on remote, manually close any local ssh connections to the remote machine to avoid losing any unsaved data.
No comments:
Post a Comment