DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Running GUI Application Remotely over SSH Session


Server Setup

$ sudo vi /etc/ssh/sshd_config

Make sure X11Forwarding is turned on:

X11Forwarding yes

Then restart ssh service: sudo /etc/init.d/sshd restart.

Client Setup

Linux Client

ssh -X gcp@10.0.2.48
$ gedit &
$ xeyes &

Bingo!

Ref: http://www.cyberciti.biz/tips/running-x-window-graphical-application-over-ssh-session.html

Windows Client

You have several options:

  • Install X server in WSL and run ssh client in WSL;

  • Use MobaXterm as the ssh client, which has a built-in X server;

  • Use Remote Desktop, it's not SSH style, see dsnote Run GUI Application on Remote Linux Server for details.



Published

Oct 29, 2013

Last Updated

May 7, 2018

Category

Tech

Tags

  • GUI 9
  • Xll 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor