ssh and x2x (software kvm switch over local network)

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

ssh and x2x (software kvm switch over local network)

#1 Post by sc0ttman »

x2x is like a software kvm switch ..

you can control the kb+mouse of another pc (server) over a network..

I've used this to control my 'server', which is a puppy pc hooked up to my TV.. i use ssh+x2x to control the server using my netbook, from my comfy sofa ;)

Note x2x, OpenSSH with X11 forwarding must be installed and working on the PC that you wanna ssh into and control (the server)..

Using ssh and X11 forwarding, you can control the mouse/kb of another pc on your network, just by scrolling off the screen..

.. on the server, get openSSH and x2x installed, then add to end of /etc/ssh/sshd_config

Code: Select all

AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
XAuthLocation /usr/bin/xauth
Now start the SSH server on the server:

Code: Select all

/etc/init.d/sshd start
Now you're ready to run x2s from the client...

Example command to run in the terminal on your client PC (the pc you wanna use to control the other[s]):

THE IMPORTANT BIT:

Code: Select all

ssh -Y user@server_ip x2x -west -to :0
with the above command, you can scroll off the left of your screen to control the mouse and keyboard of the other pc..

note: change user to the user you wanna login as, server_ip to the ip of the server (the computer you will control remotely).. and change :0 to the screen used on the server..

EDIT:

To get rid of any errors about xauth, you can do the following :

In the terminal, on the client pc, run these commands:

Code: Select all

touch ~/.Xauthorty
xauth add :0 . `mcookie`
If you dont have mcookie (see below), you could try this:

Code: Select all

dd if=/dev/random count=1 | openssl md5 | sed -e 's/^/add :0 . /' | xauth -
to test it worked:

Code: Select all

xauth list
If you're missing the file 'mcookie', get it from http://ftp.de.debian.org/debian/pool/ma ... 5_i386.deb


EDIT2: ROX doesn't work right with x11 forwarding, it runs as if locally - and not showing the filesystem of the server, unlike spacefm and others... any ideas?

EDIT3: ROX does work fine, my mistake..
Attachments
x2x.tar.gz
install on the 'server' you want to control remotely over ssh
(30 KiB) Downloaded 378 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply