Ubuntu 使用 x11 转发操作服务器,配置修改提要,


最近,使用ubuntu 发现默认不能使用 x11转发。配置修改如下:

sudo vim /etc/ssh/sshd_config:修改服务端的sshd

X11Forwarding yes

sudo systemctl restart sshd.service

sudo vim /etc/ssh/ssh_config:修改客户端的ssh

sudo systemctl restart ssh.service

开启x11服务器:可把操作添加到 ~/.bashrc之中

xhost + # 实际操作过程中,此步骤可省略

xclock测试;

参考链接:https://www.cnblogs.com/tsfh/p/9022170.html 

此种方法,在内网服务器操作时,比较有效,方便;

保持更新,转载请注明出处; cnblogs.com/xuyaowen;

相关内容

    暂无相关文章