Forwarding X over SSH in 3 simple steps

xorg.png
  • sudo vim /etc/ssh/sshd_config and make sure X11Forwarding  is set to yes on the box you are ssh’ing too.
  • ssh -v -X -C xxx.xxx.xxx.xxx     (-X specifies X forwarding, -C specifies compression, -v is verbose)
  • once logged in, simply execute “xinit” if it’s not already running on that box, and then fire off the name of your application.  Examples:
    1. gnome-session (will start gnome)
    2. startkde (will start kde)
    3. firefox (will forward firefox to your machine)
  • Related Posts

    Comments are closed.