Skip to content

Use X forward on SSH

Luciano Zago edited this page Jan 29, 2020 · 2 revisions
  • Create a instance

  • Login via SSH and install your graphical application X based. Alternatively, you can install all common desktop applications, installing the ubuntu-desktop package, on an Ubuntu instance.

Ubuntu example:

sudo apt update
sudo apt install ubuntu-desktop
  • Add the line X11Forwarding yes to /etc/ssh/sshd_config on your instance. (Already enabled on some images)

  • Reboot the instance

  • Connnect using the flag -X on SSH, to enable the X11 forwarding, or enable the option ForwardX11 yes in your ~/.ssh/config

  • Run your application

Clone this wiki locally