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.