码迷,mamicode.com
首页 > 系统相关 > 详细

使用macbook ssh连接到linux服务器, 并开启图形界面转发

时间:2020-07-12 16:23:22      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:host   连接   场景   inux   conf   机器   for   cbo   can   

问题场景

希望在macbook上查看linux服务器的图形, 例如使用feh命令或者

cv2.imshow()

等情形. 如果没正确配置则会报错:

feh ERROR: Can‘t open X display. It *is* running, yeah?

配置

sudo vim /etc/ssh/ssh_config
# 修改文件内容为
Host *
  ForwardAgent yes
  ForwardX11 yes
  • 在remote机器(X11 forward xclient)上编辑文件
sudo vim /etc/ssh/ssh_config
# 修改文件内容为
X11Forwarding yes

使用macbook ssh连接到linux服务器, 并开启图形界面转发

标签:host   连接   场景   inux   conf   机器   for   cbo   can   

原文地址:https://www.cnblogs.com/theodoric008/p/13288570.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!