本文的主要参考
https://superuser.com/questions/249045/x11-forwarding-from-amazon-ec2-ami
背景
在Amazon提供的免费EC2 中,使用MobaXterm连接之后想要在本地打开一个图形界面怎么办?
前面的事情就不多说了。参考我的另一篇博客。
https://blog.csdn.net/Kangyucheng/article/details/106666528
来到了这里
来到这里之后,发现输入xclock之后并不能找到命令。哈哈,没关系忽略它。
在电脑中已经正确安装Chrome之后,我们可以测一下,输入
google-chrome
总之是打不开滴。。。。。。。。。。。。。。。。。就不放截图了。
扫描二维码关注公众号,回复:
11716131 查看本文章
解决办法
输入命令
sudo yum install xorg-x11-xauth.x86_64 xorg-x11-server-utils.x86_64 dbus-x11.x86_64
然后安装成功了,输入命令
sudo systemctl restart sshd.service
再重新连一下试试。
发现 X11 之处不太一样了。打开Chrome看看。
如果还是不行
执行命令
sudo vim /etc/ssh/sshd_config
修改一下这两个值。不过默认,第一个是开启的。