# Using x2x to connect two computers and their screens with one mouse and keyboard

Let's say you have 2 computers:

`cpu1: 10.0.0.1`  
`cpu2: 10.0.0.2`

Let's say cpu1's screen is left to cpu2's screen.

Let's say you want to control cpu1 from cpu2.

<s>Let's assume both computers have the same username.</s>

1. install x2x on cpu1
2. enter on cpu2

`ssh -X user@cpu1 'x2x -west -to :0'`

and leave terminal open.

And that's it!