1,在linux子系统上执行命令
sudo apt install ssh xauth xorg
2,修改linux子系统配置
sudo vim /etc/ssh/sshd_config
添加:
Port 22
Protocol 2
XauthLocation /usr/bin/xauth
X11Forwarding yes
sudo vim /etc/ssh/ssh_config
添加:
Host *
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
GSSAPIDelegateCredentials no
3,在远程服务器上安装xauth
yum install xorg-x11-xauth
4, 然后就可以启动远程服务的的程序在win10下显示了,比如firefox