Forward graphical applications through ssh
It is possible to execute graphical applications on a remote machine and have their output showing on the local machine through a ssh connection.
Set up the server
Set up the server to permit X forwarding:
- Edit
/etc/ssh/sshd_config- Set
X11Forwarding yes
- Set
service ssh reloadapt install xauth
Connect from the client
ssh -X {usual ssh connection parameters}: The flag-Xenables X forwarding for this session- Execute any graphical command
If you want to make X forwarding enabled by default for a certain connection, add ForwardX11 yes to the appropriate line in ~/.ssh/config