i am searching for a solution how to echo a keydown over SSH to a running GUI (based on debian).
like VNC or Teamviewer but only command line based.
i am searching for a solution how to echo a keydown over SSH to a running GUI (based on debian).
like VNC or Teamviewer but only command line based.
Use xdotool to find the window and send a key event. Example, assuming 'OpenOffice Impress' is in the titlebar of that application, and that it is running on $DISPLAY :0
$ ssh remote-computer
$ export DISPLAY=:0
$ xdotool key --window $(xdotool search --name 'OpenOffice Impress') F5
MIT-MAGIC-COOKIE-1
is not related to xdotool. See https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely for how to run X applications with remote forwarding
– grebneke
Jun 17 '22 at 17:23